release-notes/devel/scripts index.html.in, 1.1, 1.2 mkindex.awk, 1.1, 1.2 mkindex.map, 1.1, 1.2
Tommy Reynolds (jtr)
fedora-docs-commits at redhat.com
Sun Sep 17 21:49:15 UTC 2006
- Previous message (by thread): release-notes/devel/scripts Makefile, NONE, 1.1 index.html.in, NONE, 1.1 mkindex, NONE, 1.1 mkindex.awk, NONE, 1.1 mkindex.map, NONE, 1.1
- Next message (by thread): translation-quick-start-guide/en_US translation-quick-start.xml, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: jtr
Update of /cvs/docs/release-notes/devel/scripts
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25529
Modified Files:
index.html.in mkindex.awk mkindex.map
Log Message:
More thinking on browser language remapping and support for non-JavaScript
browsers.
Index: index.html.in
===================================================================
RCS file: /cvs/docs/release-notes/devel/scripts/index.html.in,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- index.html.in 17 Sep 2006 21:11:31 -0000 1.1
+++ index.html.in 17 Sep 2006 21:49:12 -0000 1.2
@@ -10,8 +10,6 @@
if( language == "" ) {
language = "C";
}
- // prefix="/usr/share/doc/fedora-release-5/RELEASE-NOTES-";
- // suffix=".html";
prefix = "<prefix/>";
suffix = "<suffix/>";
switch( language ) {
@@ -21,10 +19,13 @@
default:
middle = "C";
break;
- <SHORTS/>
+ //* No direct support for this browser location, try remapping
+ //* to generate something appropriate
+ <REMAP/>
}
break;
- <LOCALES/>
+ //* These browser languages are directly supported
+ <LANGS/>
}
window.location=prefix + middle + suffix;
}
Index: mkindex.awk
===================================================================
RCS file: /cvs/docs/release-notes/devel/scripts/mkindex.awk,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mkindex.awk 17 Sep 2006 21:11:31 -0000 1.1
+++ mkindex.awk 17 Sep 2006 21:49:12 -0000 1.2
@@ -18,6 +18,7 @@
note = $0
maps[ src ] = dst
notes[ src ] = note
+ printf "<!-- %s|%s|%s -->\n", src, dst, note
}
}
}
@@ -25,50 +26,44 @@
gsub( /<prefix\/>/, prefix )
gsub( /<suffix\/>/, suffix )
}
-/<LOCALES\/>/ {
- printf "// Attempt to match specific locales\n"
+/<LANGS\/>/ {
+ printf "\t// Attempt to match specific locales\n"
for( i = 1; i <= nLangs; ++i ) {
lang = langs[ i ]
printf "\tcase \"%s\":\n", lang
if( lang in maps ) {
- printf "\tmiddle = \"%s\";\n", maps[ lang ]
+ printf "\t\tmiddle = \"%s\";\n", maps[ lang ]
}
printf "\t\tbreak;\n"
}
next
}
-/<SHORTS\/>/ {
- printf "\t// Attempt to match generic locales\n"
+/<REMAP\/>/ {
+ printf "\t\t\t// Attempt to match generic locales\n"
for( lang in shorts ) {
- printf "\t\tcase \"%s\":\n", lang
+ printf "\t\t\tcase \"%s\":\n", lang
if( lang in maps ) {
- printf "\t\t\tmiddle = \"$s\";\n", maps[ lang ]
+ printf "\t\t\t//* %s;\n", notes[ lang ]
+ printf "\t\t\t\tmiddle = \"%s\";\n", maps[ lang ]
}
- printf "\t\t\tbreak;\n"
+ printf "\t\t\t\tbreak;\n"
}
next
}
/<ITEMS\/>/ {
for( i = 1; i <= nLangs; ++i ) {
- url = prefix lang suffix
- print "<DT>"
+ lang = langs[ i ]
+ print "<DT><PARA>"
if( lang in notes ) {
print notes[ lang ]
} else {
print lang
}
- print "</DT>"
- print "<DD>"
- printf "\t<a href=\"%s\">%s</a>\n", url, url
- print "</DD>"
- }
- for( lang in shorts ) {
- url = prefix lang suffix
- if( lang in notes ) {
- print notes[ lang ]
- } else {
- print lang
+ if( lang in maps ) {
+ lang = maps[ lang ]
}
+ url = prefix lang suffix
+ print "</PARA></DT>"
print "<DD>"
printf "\t<a href=\"%s\">%s</a>\n", url, url
print "</DD>"
Index: mkindex.map
===================================================================
RCS file: /cvs/docs/release-notes/devel/scripts/mkindex.map,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- mkindex.map 17 Sep 2006 21:11:31 -0000 1.1
+++ mkindex.map 17 Sep 2006 21:49:12 -0000 1.2
@@ -7,5 +7,8 @@
#
# This isn't very robust, but it's a (perhaps, false) start.
#
-# BROWSER locale desc
+# Hint: map the language to itself so you can provide notes
+# BROWSER LANG Notes
en_US en US English
+ru ru Russian
+de de German
- Previous message (by thread): release-notes/devel/scripts Makefile, NONE, 1.1 index.html.in, NONE, 1.1 mkindex, NONE, 1.1 mkindex.awk, NONE, 1.1 mkindex.map, NONE, 1.1
- Next message (by thread): translation-quick-start-guide/en_US translation-quick-start.xml, 1.11, 1.12
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Fedora-docs-commits
mailing list