• Request a Demo

760-632-1400

Menu
  • Legislative Drafting
  • LegisPro XML Tech
  • Legislative Standards
  • About
    Us
  • Grant’s
    Blog
  • Try LegisPro

And now for something completely different… Chinese!

xc-admin

February 20, 2012

00

Last week we saw how Akoma Ntoso can be applied to a very large consolidated Code – the United States Code. This week we take the challenge in a different direction – applying Akoma Ntoso to a bilingual implementation involving a totally different writing system. Our test document this week is the Hong Kong Basic Law. This document serves as the constitutional document of the Hong Kong Special Administrative Region of the People’s Republic of China. It was adopted on the 4 April 1990 and went into effect on July 1, 1997 when the United Kingdom handed over the region to the People’s Republic of China.

The Hong Kong Basic Law is available in English, Traditional Chinese, and Simplified Chinese. For our exercise, we are demonstrating the document in English and in Traditional Chinese. (Thank you to Patrick for doing the conversion for me.) Fortunately, using modern technologies, supporting Chinese characters alongside Latin characters is quite straightforward. Unicode provides a Hong Kong supplementary character set to handle characters unique to Hong Kong. The biggest challenge is ensuring that all the unicode declarations throughout the various XML and HTML files that the information must flow through are set correctly. With the number of accents we find in names in California as well as the rigorous nature of California’s publishing rules, getting Unicode right is something we have grown accustomed to.

While I hadn’t expected there to be any problems with Unicode, I was pleasently surprised to find that the fonts used in Legix simply worked with the Traditional Chinese characters without issue as well. (Well at least as far as I can tell without the ability to actually read Chinese)

The only issue we encountered was Internet Explorer’s support for CSS3. Apparently, IE still does not recognize “list-style-type” with a value of “cjk-ideographic”. So instead of getting Traditional Chinese numerals, we get Arabic numerals. The other browsers handled this much better.

So what other considerations were there? A big consideration was the referencing mechanism. To me, modeling how you refer to something in an information model can be more important than the information model itself. The referencing mechanism defines how the information is organized and allows you to address a specific piece of information in a very precise and accurate way. Done right, any piece of information can be accessed very quickly and easily. Done wrong and you get chaos.

Our referencing mechanism relies on the Functional Requirements for Bibliographical Records (FRBR). This mechanism is used by both SLIM and Akomantoso. Another interesting FRBR proposal for legislation can be found here.

FRBR defines an information model based on a hierarchical scheme of Work-Expression-Manifestion-Item. Think of the work as the overall document being addressed, the expression being the version desired, the manifestation the format you want to information presented in, and finally the item as a means for addressing a specific instance of the information. Typically we’re only concerend with Work-Expression-Manifestation.

For a bilingual or multilingual system, the “expression” part of the reference is used to specify which language you wish the document to be returned in. If you check out the references at Legix.info you will see that the two references the the Hong Kong Basic Law are:

  • http://legix.info/hk/laws;basiclaw/doc;en-uk
  • http://legix.info/hk/laws;basiclaw/doc;zh-yue

The expressions are called out as “doc;en-uk” for the English version and “doc;zh-yue” for the Chinese version. Relatively straightforward. The manifestations are not shown and the result is the default manifestation of HTML.

Check the samples out and let me know what you think.

Related Post

AUGUST 1, 2019

Building a bill drafting...

We built our first bill drafting system in 2002 for the state of California. It took...

00

JULY 8, 2019

Upcoming LEX Summer School

<p><a href="https://xcential.com/wp-content/uploads/2019/07/LexSummerSchool.png"><img...

00

FEBRUARY 2, 2019

“I love it when a plan...

"I love it when a plan comes together!" Remember that old line from Hannibal on the...

30

NOVEMBER 30, 2018

Why did we build our own XML...

I’m often asked what XML editor it is built from. The answer is that we built our own....

00

Leave a Comments Cancel Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Grant is a leading authority on applications of XML data to legislation, regulations and government documents. He regularly serves as an instructor at the University of Bologna’s LEX School in Ravenna, Italy, providing training in Akoma Ntoso and XML standards for the lawmaking process. He is a member of the OASIS committee that has driven the development and adoption of the Akoma Ntoso (LegalDocML) standard.
Xcential Corporation
841 2nd Street,
Encinitas, CA 92024
760.632.1400
  • Legislative Drafting
  • LegisPro XML Tech
  • Legislative Standards
  • Try LegisPro
  • Legix.Info Blog

© 2019 Xcential, All Rights Reserved. Website design by Lisa Baker Associates, INC.