Handbook translation

Ganbold ganbold at micom.mng.net
Thu Oct 19 02:55:13 UTC 2006


Ganbold wrote:
> daemon# pkg_info|grep iso
> bison-1.75_2,1      A parser generator from FSF, (mostly) compatible 
> with Yacc
> iso-codes-0.51      Lists of the country, language and currency iso names
> iso8879-1986_2      Character entity sets from ISO 8879:1986 (SGML)
> daemon#
>
> So iso12083 ports is still not installed. After installing this port 
> problem still the same:
>
> daemon# pkg_info | grep iso
> bison-1.75_2,1      A parser generator from FSF, (mostly) compatible 
> with Yacc
> iso-codes-0.51      Lists of the country, language and currency iso names
> iso12083-1993_2     SGML DTDs from the The Electronic Publishing 
> Special Intere
> iso8879-1986_2      Character entity sets from ISO 8879:1986 (SGML)
>
> daemon# nsgmls -s book.sgml
> nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:54:0:E: cannot 
> open "/usr/local/share/sgml/docbook/4.1/iso-amsa.gml" (No such file or 
> directory)
> nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:61:0:E: cannot 
> open "/usr/local/share/sgml/docbook/4.1/iso-amsb.gml" (No such file or 
> directory)
> nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:68:0:E: cannot 
> open "/usr/local/share/sgml/docbook/4.1/iso-amsc.gml" (No such file or 
> directory)
> nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:75:0:E: cannot 
> open "/usr/local/share/sgml/docbook/4.1/iso-amsn.gml" (No such file or 
> directory)
> nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:82:0:E: cannot 
> open "/usr/local/share/sgml/docbook/4.1/iso-amso.gml" (No such file or 
> directory)
> nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:89:0:E: cannot 
> open "/usr/local/share/sgml/docbook/4.1/iso-amsr.gml" (No such file or 
> directory)

Ok, it seems like problem is related to either textproc/docbook-410 or 
textproc/iso8879 ports. Or even maybe outdated FDP-Primer if ports are 
correct. Because iso8879 files aren't in 
/usr/local/share/sgml/docbook/4.1 directory:

daemon# ls -l /usr/local/share/sgml/docbook/4.1
total 346
-r--r--r--  1 root  wheel    2095 Jun 19  2000 40chg.txt
-r--r--r--  1 root  wheel     254 Jun 19  2000 41chg.txt
-r--r--r--  1 root  wheel    1459 Jun 19  2000 50issues.txt
-r--r--r--  1 root  wheel    3192 Jun 19  2000 ChangeLog
-r--r--r--  1 root  wheel   14447 Jun 19  2000 cals-tbl.dtd
-r--r--r--  1 root  wheel    3734 Oct 14 11:44 catalog
-r--r--r--  1 root  wheel    5640 Jun 19  2000 dbcent.mod
-r--r--r--  1 root  wheel    1546 Jun 19  2000 dbgenent.mod
-r--r--r--  1 root  wheel   60153 Jun 19  2000 dbhier.mod
-r--r--r--  1 root  wheel    4291 Jun 19  2000 dbnotn.mod
-r--r--r--  1 root  wheel  203767 Jun 19  2000 dbpool.mod
-r--r--r--  1 root  wheel    3678 Jun 19  2000 docbook.cat
-r--r--r--  1 root  wheel    2517 Jun 19  2000 docbook.dcl
-r--r--r--  1 root  wheel    4464 Jun 19  2000 docbook.dtd
-r--r--r--  1 root  wheel     351 Jun 19  2000 readme.txt

If you look at catalog file in docbook/4.1 the ISO entity sets are 
defined like following:
...
  -- ISO entity sets 
...................................................... --

PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "iso-dia.gml"
PUBLIC "ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN" 
"iso-num.gml"
PUBLIC "ISO 8879:1986//ENTITIES Publishing//EN" "iso-pub.gml"
PUBLIC "ISO 8879:1986//ENTITIES General Technical//EN" "iso-tech.gml"
PUBLIC "ISO 8879:1986//ENTITIES Added Latin 1//EN" "iso-lat1.gml"
PUBLIC "ISO 8879:1986//ENTITIES Added Latin 2//EN" "iso-lat2.gml"
PUBLIC "ISO 8879:1986//ENTITIES Greek Letters//EN" "iso-grk1.gml"
PUBLIC "ISO 8879:1986//ENTITIES Monotoniko Greek//EN" "iso-grk2.gml"
PUBLIC "ISO 8879:1986//ENTITIES Greek Symbols//EN" "iso-grk3.gml"
PUBLIC "ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN" 
"iso-grk4.gml"
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN" 
"iso-amsa.gml"
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Binary 
Operators//EN" "iso-amsb.gml"
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN" 
"iso-amsc.gml"
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Negated 
Relations//EN" "iso-amsn.gml"
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN" 
"iso-amso.gml"
PUBLIC "ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN" 
"iso-amsr.gml"
PUBLIC "ISO 8879:1986//ENTITIES Box and Line Drawing//EN" "iso-box.gml"
PUBLIC "ISO 8879:1986//ENTITIES Russian Cyrillic//EN" "iso-cyr1.gml"
PUBLIC "ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN" "iso-cyr2.gml"

  -- End of catalog data for DocBook V4.1 
................................. --
  -- 
...................................................................... --
CATALOG "/usr/local/share/sgml/iso8879/catalog"

However if you look /usr/local/share/sgml/iso8879 directory, file names 
are different:

daemon# ls -l /usr/local/share/sgml/iso8879
total 90
-r--r--r--  1 root  wheel  4310 Dec 14  1996 ISOamsa
-r--r--r--  1 root  wheel  3262 Dec 14  1996 ISOamsb
-r--r--r--  1 root  wheel  1080 Dec 14  1996 ISOamsc
-r--r--r--  1 root  wheel  4474 Dec 14  1996 ISOamsn
-r--r--r--  1 root  wheel  1593 Dec 14  1996 ISOamso
-r--r--r--  1 root  wheel  6036 Dec 14  1996 ISOamsr
-r--r--r--  1 root  wheel  3379 Dec 14  1996 ISObox
-r--r--r--  1 root  wheel  4324 Dec 14  1996 ISOcyr1
-r--r--r--  1 root  wheel  1938 Dec 14  1996 ISOcyr2
-r--r--r--  1 root  wheel  1071 Dec 14  1996 ISOdia
-r--r--r--  1 root  wheel  3204 Dec 14  1996 ISOgrk1
-r--r--r--  1 root  wheel  1755 Dec 14  1996 ISOgrk2
-r--r--r--  1 root  wheel  2885 Dec 14  1996 ISOgrk3
-r--r--r--  1 root  wheel  2983 Dec 14  1996 ISOgrk4
-r--r--r--  1 root  wheel  4296 Dec 14  1996 ISOlat1
-r--r--r--  1 root  wheel  7389 Dec 14  1996 ISOlat2
-r--r--r--  1 root  wheel  4809 Dec 14  1996 ISOnum
-r--r--r--  1 root  wheel  5538 Dec 14  1996 ISOpub
-r--r--r--  1 root  wheel  4297 Dec 14  1996 ISOtech
-r--r--r--  1 root  wheel  2785 Oct 11 15:06 catalog

So definitely something needs to be updated accordingly, either update 
FDP-Primer or sync docbook and iso8879 ports.
Is it possible to check sgml files in different way other than in 
FDP-Primer guide?

I could:
1. either change all the iso8879 file names according to docbook catalog 
entries  and copy those files to docbook dir
or
2. change the entries in catalog file to point to iso8879 files and then 
check sgml files.
Correct me if I'm wrong here.

I tried changing entries in docbook catalog file something like:
...
PUBLIC "ISO 8879:1986//ENTITIES Diacritical Marks//EN" "ISOdia"
...

But nsgml still looks iso8879 files in docbook dir:

daemon# nsgmls -s book.sgml
...
nsgmls:/usr/local/share/sgml/docbook/4.1/dbcent.mod:117:0:E: cannot open 
"/usr/local/share/sgml/docbook/4.1/ISOdia" (No such file or directory)
...

I already have set env:
daemon# env
...
SGML_ROOT=/usr/local/share/sgml
SGML_CATALOG_FILES=/usr/local/share/sgml/iso12083/catalog:/usr/doc/en_US.ISO8859-1/share/sgml/catalog:/usr/doc/share/sgml/catalog:/usr/local/share/sgml/docbook/4.1/catalog:/usr/local/share/sgml/html/catalog:/usr/local/share/sgml/iso8879/catalog:/usr/local/share/sgml/jade/catalog
...

Any idea?

thanks,

Ganbold





More information about the freebsd-doc mailing list