74 lines
2.7 KiB
Plaintext
74 lines
2.7 KiB
Plaintext
# Description: XML entity set corresponding to ISO 8879 SGML character entities
|
|
# URL: http://www.oasis-open.org/docbook/xmlcharent/
|
|
# Maintainer: Johannes Winkelmann, jw at tks6 dot net
|
|
# Depends on: libxml2
|
|
|
|
name=docbook-xml-entities
|
|
version=0.3
|
|
release=3
|
|
source=(http://www.oasis-open.org/docbook/xmlcharent/$version/xmlcharent-$version.zip)
|
|
|
|
build() {
|
|
install -d -m 0755 $PKG/{etc,usr/share}/xml/ent/docbook/$version
|
|
install -m 0644 *.ent $PKG/usr/share/xml/ent/docbook/$version
|
|
xmlcatalog --noout --create $PKG/etc/xml/catalog
|
|
xmlcatalog --noout --create $PKG/etc/xml/ent/docbook/$version/catalog
|
|
|
|
ENT_CAT=/etc/xml/ent/docbook/$version/catalog
|
|
ENT_PATH=/usr/share/xml/ent/docbook/$version
|
|
MASTER_CAT=/etc/xml/catalog
|
|
|
|
xmlcatalog --noout --add "delegatePublic" \
|
|
"-//OASIS//ENTITIES DocBook XML" $ENT_CAT $PKG$MASTER_CAT
|
|
xmlcatalog --noout --add "delegatePublic" \
|
|
"ISO 8879:1986" $ENT_CAT $PKG$MASTER_CAT
|
|
|
|
ident_prefix="ISO 8879:1986//ENTITIES"
|
|
ENT_IDENT=("$ident_prefix Publishing//EN"
|
|
"$ident_prefix Greek Letters//EN"
|
|
"$ident_prefix Box and Line Drawing//EN"
|
|
"$ident_prefix Greek Symbols//EN"
|
|
"$ident_prefix Added Math Symbols: Negated Relations//EN"
|
|
"$ident_prefix Numeric and Special Graphic//EN"
|
|
"$ident_prefix Alternative Greek Symbols//EN"
|
|
"$ident_prefix Diacritical Marks//EN"
|
|
"$ident_prefix Monotoniko Greek//EN"
|
|
"$ident_prefix Added Math Symbols: Arrow Relations//EN"
|
|
"$ident_prefix Added Math Symbols: Ordinary//EN"
|
|
"$ident_prefix Russian Cyrillic//EN"
|
|
"$ident_prefix General Technical//EN"
|
|
"$ident_prefix Added Math Symbols: Delimiters//EN"
|
|
"$ident_prefix Added Latin 1//EN"
|
|
"$ident_prefix Added Math Symbols: Binary Operators//EN"
|
|
"$ident_prefix Added Latin 2//EN"
|
|
"$ident_prefix Added Math Symbols: Relations//EN"
|
|
"$ident_prefix Non-Russian Cyrillic//EN")
|
|
|
|
ENT_FILE=($ENT_PATH/iso-pub.ent
|
|
$ENT_PATH/iso-grk1.ent
|
|
$ENT_PATH/iso-box.ent
|
|
$ENT_PATH/iso-grk3.ent
|
|
$ENT_PATH/iso-amsn.ent
|
|
$ENT_PATH/iso-num.ent
|
|
$ENT_PATH/iso-grk4.ent
|
|
$ENT_PATH/iso-dia.ent
|
|
$ENT_PATH/iso-grk2.ent
|
|
$ENT_PATH/iso-amsa.ent
|
|
$ENT_PATH/iso-amso.ent
|
|
$ENT_PATH/iso-cyr1.ent
|
|
$ENT_PATH/iso-tech.ent
|
|
$ENT_PATH/iso-amsc.ent
|
|
$ENT_PATH/iso-lat1.ent
|
|
$ENT_PATH/iso-amsb.ent
|
|
$ENT_PATH/iso-lat2.ent
|
|
$ENT_PATH/iso-amsr.ent
|
|
$ENT_PATH/iso-cyr2.ent)
|
|
|
|
i=0
|
|
while test $i -lt 19; do
|
|
xmlcatalog --noout --add "public" \
|
|
"${ENT_IDENT[$i]}" "file://${ENT_FILE[$i]}" $PKG$ENT_CAT
|
|
i=$(($i + 1))
|
|
done
|
|
}
|