]> pere.pagekite.me Git - homepage.git/commitdiff
Start on locale writers howto.
authorPetter Reinholdtsen <pere@hungry.com>
Sat, 15 May 2004 09:59:37 +0000 (09:59 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Sat, 15 May 2004 09:59:37 +0000 (09:59 +0000)
linux/glibc/howto.html [new file with mode: 0644]

diff --git a/linux/glibc/howto.html b/linux/glibc/howto.html
new file mode 100644 (file)
index 0000000..f3b6041
--- /dev/null
@@ -0,0 +1,64 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
+<html>
+  <head>
+    <title>How to write a GNU libc locale</title>
+  </head>
+
+  <body>
+    <h1>How to write a GNU libc locale</h1>
+
+    <address>by Petter Reinholdtsen</address>
+
+    <p>This is a draft document explaining how to write locale files
+      for GNU libc.  It will not go into details, but reference
+      specifications.  It will on the other hand mention some of the
+      pitfalls, and try to document the current practice.</p>
+
+    <h2>How to choose the locale file name</h2>
+
+    - how to choose the file name
+
+    <h2>Category order</h2>
+
+    <p>To make it easier to compare locales with each other, I
+      recommend using the same order for the categories in all
+      locales.  Any order will do, so I picked the order used in most
+      locales, and decided to recommend this order:</p>
+
+    <ol>
+      <li>LC_IDENTIFICATION
+      <li>LC_CTYPE
+      <li>LC_COLLATE
+      <li>LC_MONETARY
+      <li>LC_NUMERIC
+      <li>LC_TIME
+      <li>LC_MESSAGES
+      <li>LC_PAPER
+      <li>LC_NAME
+      <li>LC_ADDRESS
+      <li>LC_TELEPHONE
+      <li>LC_MEASUREMENT
+    </ol>
+
+    <h2>Reuse when possible</h2>
+
+    - "copy" from existing locales if the content should be identical
+
+    <h2>LD_INDENTIFICATION</h2>
+
+    - standard refs in the LD_INDENTIFICATION
+
+    <h2>LC_MESSAGES</h2>
+
+    - yes/no expr should have the form ^[yYnN<extra>], without 0 and 1
+
+    <h2>Standard documents and specifications</h2>
+
+    <hr>
+    <address><a href="mailto:pere@hungry.com">Petter Reinholdtsen</a></address>
+<!-- Created: Sun Mar 21 18:14:42 CET 2004 -->
+<!-- hhmts start -->
+Last modified: Sat May 15 11:56:09 CEST 2004
+<!-- hhmts end -->
+  </body>
+</html>