mirror of
https://github.com/simon987/antiword.git
synced 2025-12-16 05:19:02 +00:00
antiword 0.37 original source
This commit is contained in:
15
Unix-only/KDE1-only/Antiword.kdelnk.eu
Normal file
15
Unix-only/KDE1-only/Antiword.kdelnk.eu
Normal file
@@ -0,0 +1,15 @@
|
||||
# KDE Config File
|
||||
[KDE Desktop Entry]
|
||||
Comment[C]=MS Word reader
|
||||
SwallowTitle=
|
||||
SwallowExec=
|
||||
BinaryPattern=antiword;kantiword;
|
||||
Name=Antiword
|
||||
Name[C]=Antiword
|
||||
MimeType=
|
||||
Exec=kantiword a4 %f
|
||||
Icon=antiword.xpm
|
||||
TerminalOptions=
|
||||
Path=
|
||||
Type=Application
|
||||
Terminal=0
|
||||
15
Unix-only/KDE1-only/Antiword.kdelnk.us
Normal file
15
Unix-only/KDE1-only/Antiword.kdelnk.us
Normal file
@@ -0,0 +1,15 @@
|
||||
# KDE Config File
|
||||
[KDE Desktop Entry]
|
||||
Comment[C]=MS Word reader
|
||||
SwallowTitle=
|
||||
SwallowExec=
|
||||
BinaryPattern=antiword;kantiword;
|
||||
Name=Antiword
|
||||
Name[C]=Antiword
|
||||
MimeType=
|
||||
Exec=kantiword letter %f
|
||||
Icon=antiword.xpm
|
||||
TerminalOptions=
|
||||
Path=
|
||||
Type=Application
|
||||
Terminal=0
|
||||
272
Unix-only/KDE1-only/antiword.xpm
Normal file
272
Unix-only/KDE1-only/antiword.xpm
Normal file
@@ -0,0 +1,272 @@
|
||||
/* XPM */
|
||||
static char *antiword_48[] = {
|
||||
/* width height num_colors chars_per_pixel */
|
||||
" 48 48 217 2",
|
||||
/* colors */
|
||||
".. c #040204",
|
||||
".# c #548a04",
|
||||
".a c #840604",
|
||||
".b c #4c460c",
|
||||
".c c #bcc2bc",
|
||||
".d c #3c0604",
|
||||
".e c #b4820c",
|
||||
".f c #141e04",
|
||||
".g c #acaaa4",
|
||||
".h c #74560c",
|
||||
".i c #240604",
|
||||
".j c #3c5e0c",
|
||||
".k c #dca20c",
|
||||
".l c #0c1204",
|
||||
".m c #dce2dc",
|
||||
".n c #ac060c",
|
||||
".o c #543e0c",
|
||||
".p c #9c720c",
|
||||
".q c #3c2e0c",
|
||||
".r c #848284",
|
||||
".s c #e4b20c",
|
||||
".t c #140204",
|
||||
".u c #949694",
|
||||
".v c #24320c",
|
||||
".w c #b4b6b4",
|
||||
".x c #5c5a5c",
|
||||
".y c #741e0c",
|
||||
".z c #3c3e3c",
|
||||
".A c #ccd2cc",
|
||||
".B c #bc920c",
|
||||
".C c #ecf2ec",
|
||||
".D c #746e74",
|
||||
".E c #f4b20c",
|
||||
".F c #1c1604",
|
||||
".G c #94060c",
|
||||
".H c #6c260c",
|
||||
".I c #9ca29c",
|
||||
".J c #5c0604",
|
||||
".K c #84620c",
|
||||
".L c #d40604",
|
||||
".M c #5c4244",
|
||||
".N c #646664",
|
||||
".O c #cc9a0c",
|
||||
".P c #747a74",
|
||||
".Q c #f4ba0c",
|
||||
".R c #0c0204",
|
||||
".S c #c4cac4",
|
||||
".T c #141a04",
|
||||
".U c #8c8e8c",
|
||||
".V c #c4bebc",
|
||||
".W c #345204",
|
||||
".X c #acb2ac",
|
||||
".Y c #24160c",
|
||||
".Z c #e4aa0c",
|
||||
".0 c #e4eae4",
|
||||
".1 c #544a2c",
|
||||
".2 c #140e04",
|
||||
".3 c #9c9e9c",
|
||||
".4 c #2c2e2c",
|
||||
".5 c #4c4a4c",
|
||||
".6 c #f4faf4",
|
||||
".7 c #a40604",
|
||||
".8 c #242624",
|
||||
".9 c #fcba04",
|
||||
"#. c #44160c",
|
||||
"## c #7c5e0c",
|
||||
"#a c #14120c",
|
||||
"#b c #c4020c",
|
||||
"#c c #848a84",
|
||||
"#d c #9c969c",
|
||||
"#e c #bcbebc",
|
||||
"#f c #dcdadc",
|
||||
"#g c #c4920c",
|
||||
"#h c #6c6e6c",
|
||||
"#i c #3c363c",
|
||||
"#j c #3c520c",
|
||||
"#k c #7c160c",
|
||||
"#l c #4c060c",
|
||||
"#m c #b4aeac",
|
||||
"#n c #340604",
|
||||
"#o c #44720c",
|
||||
"#p c #ecb20c",
|
||||
"#q c #646264",
|
||||
"#r c #747674",
|
||||
"#s c #0c0e14",
|
||||
"#t c #1c161c",
|
||||
"#u c #9c0604",
|
||||
"#v c #a4a2a4",
|
||||
"#w c #6c0604",
|
||||
"#x c #8c6a0c",
|
||||
"#y c #dc0204",
|
||||
"#z c #d49a0c",
|
||||
"#A c #847e84",
|
||||
"#B c #0c0604",
|
||||
"#C c #cccac4",
|
||||
"#D c #ecae0c",
|
||||
"#E c #6c4e0c",
|
||||
"#F c #343634",
|
||||
"#G c #fcbe04",
|
||||
"#H c #14160c",
|
||||
"#I c #c4960c",
|
||||
"#J c #040604",
|
||||
"#K c #8c060c",
|
||||
"#L c #c4c2c4",
|
||||
"#M c #440604",
|
||||
"#N c #b48a0c",
|
||||
"#O c #1c1e1c",
|
||||
"#P c #acaeac",
|
||||
"#Q c #7c5a0c",
|
||||
"#R c #3c6204",
|
||||
"#S c #e4e2e4",
|
||||
"#T c #542224",
|
||||
"#U c #8c868c",
|
||||
"#V c #1c0204",
|
||||
"#W c #bcbabc",
|
||||
"#X c #645e64",
|
||||
"#Y c #444644",
|
||||
"#Z c #d4d2d4",
|
||||
"#0 c #f4f2f4",
|
||||
"#1 c #0c0e0c",
|
||||
"#2 c #64060c",
|
||||
"#3 c #242224",
|
||||
"#4 c #544e54",
|
||||
"#5 c #6c666c",
|
||||
"#6 c #643a0c",
|
||||
"#7 c #742a0c",
|
||||
"#8 c #ac7e0c",
|
||||
"#9 c #342e0c",
|
||||
"a. c #c48e0c",
|
||||
"a# c #5c460c",
|
||||
"aa c #4c3a0c",
|
||||
"ab c #444244",
|
||||
"ac c #7c7a7c",
|
||||
"ad c #949294",
|
||||
"ae c #eceaec",
|
||||
"af c #342e34",
|
||||
"ag c #fcfafc",
|
||||
"ah c #2c262c",
|
||||
"ai c #4c360c",
|
||||
"aj c #6c521c",
|
||||
"ak c #2c060c",
|
||||
"al c #b4b2b4",
|
||||
"am c #8c8a8c",
|
||||
"an c #a47a0c",
|
||||
"ao c #b4060c",
|
||||
"ap c #442e0c",
|
||||
"aq c #140e14",
|
||||
"ar c #7c7674",
|
||||
"as c #34560c",
|
||||
"at c #e4ae0c",
|
||||
"au c #4c4e4c",
|
||||
"av c #a4a6a4",
|
||||
"aw c #cccecc",
|
||||
"ax c #745a0c",
|
||||
"ay c #dca60c",
|
||||
"az c #848684",
|
||||
"aA c #949a94",
|
||||
"aB c #b4bab4",
|
||||
"aC c #5c5e5c",
|
||||
"aD c #747274",
|
||||
"aE c #f4b60c",
|
||||
"aF c #940a0c",
|
||||
"aG c #84660c",
|
||||
"aH c #f4be0c",
|
||||
"aI c #dcdedc",
|
||||
"aJ c #3c3a3c",
|
||||
"aK c #1c1a1c",
|
||||
"aL c #dc0604",
|
||||
"aM c #d49e0c",
|
||||
"aN c #6c520c",
|
||||
"aO c #c4c6c4",
|
||||
"aP c #e4e6e4",
|
||||
"aQ c #1c0604",
|
||||
"aR c #d4d6d4",
|
||||
"aS c #f4f6f4",
|
||||
"aT c #545254",
|
||||
"aU c #6c6a6c",
|
||||
"aV c #7c7e7c",
|
||||
"aW c #eceeec",
|
||||
"aX c #343234",
|
||||
"aY c #fcfefc",
|
||||
"aZ c #2c2a2c",
|
||||
"a0 c #84060c",
|
||||
"a1 c #141e0c",
|
||||
"a2 c #acaaac",
|
||||
"a3 c #e4b214",
|
||||
"a4 c #0c0a0c",
|
||||
"a5 c #1c160c",
|
||||
"a6 c #5c060c",
|
||||
"a7 c #241e24",
|
||||
"a8 c #d4060c",
|
||||
"a9 c #141a0c",
|
||||
"b. c #c4bec4",
|
||||
"b# c #34520c",
|
||||
"ba c #140e0c",
|
||||
"bb c #a4060c",
|
||||
"bc c #fcba0c",
|
||||
"bd c #7c5e14",
|
||||
"be c #141214",
|
||||
"bf c #bcbec4",
|
||||
"bg c #c49214",
|
||||
"bh c #6c6e74",
|
||||
"bi c #3c5214",
|
||||
"bj c #34060c",
|
||||
"bk c #9c060c",
|
||||
"bl c #0c060c",
|
||||
"bm c #cccacc",
|
||||
"bn c #fcbe0c",
|
||||
"bo c #141614",
|
||||
"bp c #04060c",
|
||||
"bq c #44060c",
|
||||
"br c #3c620c",
|
||||
"bs c #e4ae14",
|
||||
"bt c #4c4e54",
|
||||
"bu c #9c9a9c",
|
||||
"bv c #a4a6ac",
|
||||
"XX c None",
|
||||
/* pixels */
|
||||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
"XXXXaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYXXXX",
|
||||
"XXXXaY#WbmaYaYaYaw.waYavaIaYaYaYaYaYaW#vaSaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaY.AalaYa2#faYaYXXXX",
|
||||
"XXXXaY.3.uawaY#Zbu.uaYal#SaYaYaYaYaYaP#raWaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaYaR#W#WaYazaOaYaYXXXX",
|
||||
"XXXXaY#vaVadaWbuaV#daYaW.6aYaY#0aWaSaParaW#0aSaYaWagaS#0aY#0aW#0aYaY#0aW#0aWad#PaWaWaz#e#0aYXXXX",
|
||||
"XXXXaY.3#PaW.PaP.waAaY#AawaYaS#raraBaP.PaW#P.IaYaraRaO#caY.UaraAaYaYav#r#rac#rac#r.Par.P#vaYXXXX",
|
||||
"XXXXaY#v#PagaPag.w#daYaVawaRadaPaP#0aPar.U#LaWaY.PaRaO#UaY.U.XaWaY.ubm.caVaP.U#PaPaP.raBaWaYXX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#3.8.ua2bububoaDalaAbu.X#e.g#3al.m#0#0.CaI.U.T.T.Ta9#H.....U#0.CXXXX",
|
||||
"XXXX#W#e#Wav....aTaAbua4..#Y#W#W#W.N..bp...Daz....az#W#W#W#3.N#W#e#Wab.v.#.#.#.##o....aD#W#eXXXX",
|
||||
"XXXXaS.xbo.8#Uaz.5bobe.3#v#PalboaK#s....bgajabavav.wacaZ#W.8#s#tbo#ta4#B.lba#1.l#9aya5adaSaSXXXX",
|
||||
"XXXXaRab..bebubu.5aK.D#W#rau.5....aibd#JayaN#F#W#4auaCaUbtbi.W.W.W.Wa1bja0.a.iai#8#Ga5#AaR#fXXXX",
|
||||
"XXXX#ZaDafba#h.U.5#3az.waba5ai....#Q#z..ay#EaZazaJaJ.xaD..b#.j#Rbr.j.b.H.7#ybj#Q.9.9.YacawawXXXX",
|
||||
"XXXXaYaY.u....aV.5....alaba#a3.R..#Q.O#Bay#E....aB#W#h.....R.R.R..#Banan.ta8#n#Q.9aH.YaAaYaYXXXX",
|
||||
"XXXX#W#Wbh....aVbuaD..al#Wac#a.Q.q#Q.9.Q.9#E..............ao.Lbb.R#p.Qbcbs.R..#Q.9.9.YaD#W#eXXXX",
|
||||
"XXXXaWaeaR#v...8#5#r..#F.Uac#Baa.paM.kaaat#E.f.j#R.jbras...d.G.7..#D.9.9#p....#Q.9#G.F.UaeaeXXXX",
|
||||
"XXXX#S.m#SaO....aTazabblac.u.5bpax#I.O#J.K.q.T#j.W#j.W#j#E#E#7#w..#p.9.9.EaN.Fax.9#G.Yaz#S.mXXXX",
|
||||
"XXXXaO#L#L.X#3bl.5amaAa4aU#P#m....#E#N.....taQ#V#V.Rba.q.9.9#Q....#D.9.9.9.9.o#x.9.Q.Y#r#LaOXXXX",
|
||||
"XXXXaYaYaYaYaY.4...8bua4..ab#P.......R....a0#y#y#ybq#E.9.9.9.h.....E.9.9.9.9.9#G.9#G.Y.uaYaYXXXX",
|
||||
"XXXXaObmaOaObm#3...8buaVafab#W.3ah..#O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ybb.yaGaEbn.9#D..#Y.xaDaIaIaIaI#SXXXX",
|
||||
"XXXXbmaOaObm#LaOaObmaObm.Na7a4aVadaT#Obu.wbvbubu...8#O#V#y#y#ybb..#pay.ObgaX#vaOaObmaObmaOaOXXXX",
|
||||
"XXXXaYaYagaYaYaYaYaYaYagaYav....#raT....avau......al.uaQaL#y.L.n.R#pa#..beaYaYaYaYaYagaYaYaYXXXX",
|
||||
"XXXX#L#L#L#L#L#L#L#L#L#L#LaV....aqa4....#ta4aXavav#W.wad#V#V#V#V..a5arava2#L#L#L#L#L#L#L#L#LXXXX",
|
||||
"XXXXaP#SaP.maP#SaP.m#SaP.mbm.U.....5aV..azaA#PaP#S#S#S#f.ubuaA#daA#d.S#S#SaP.maP#SaP.maP#SaPXXXX",
|
||||
"XXXXae.0aeae.0ae.0aeae.0aeaeaIaJaJ.UbmaJaRaeae.0ae.0ae.0aeae.0ae.0aeae.0ae.0ae.0ae.0ae.0aeaeXXXX",
|
||||
"XXXX#e#W#W#W#W#W#W#W#W#W#W#W#e#W#W#W#W#W#W#W#W#W#W#e#Wbf#W#W#W#W#W#W#W#W#W#W#W#W#W#W#W#W#W#WXXXX",
|
||||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
"XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
|
||||
};
|
||||
42
Unix-only/KDE1-only/kantiword.sh
Normal file
42
Unix-only/KDE1-only/kantiword.sh
Normal file
@@ -0,0 +1,42 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Script to make drag and drop in KDE possible
|
||||
#set -x
|
||||
#
|
||||
|
||||
if [ $# -lt 2 ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Determine the temp directory
|
||||
if [ -d "$TMPDIR" ] && [ -w "$TMPDIR" ]
|
||||
then
|
||||
tmp_dir=$TMPDIR
|
||||
elif [ -d "$TEMP" ] && [ -w "$TEMP" ]
|
||||
then
|
||||
tmp_dir=$TEMP
|
||||
else
|
||||
tmp_dir="/tmp"
|
||||
fi
|
||||
out_file=$tmp_dir"/antiword.$$.ps"
|
||||
err_file=$tmp_dir"/antiword.$$.err"
|
||||
|
||||
# Determine the paper size
|
||||
paper_size=$1
|
||||
shift
|
||||
|
||||
# Make the PostScript file
|
||||
antiword -p $paper_size -i 0 "$@" 2>$err_file >$out_file
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
rm -f $out_file
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Show the PostScript file
|
||||
gv $out_file -nocentre -media $paper_size
|
||||
|
||||
# Clean up
|
||||
rm -f $out_file $err_file
|
||||
exit 0
|
||||
8
Unix-only/KDE3-only/Antiword.desktop.eu
Normal file
8
Unix-only/KDE3-only/Antiword.desktop.eu
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
BinaryPattern=kantiword;Kantiword
|
||||
MimeType=application/msword
|
||||
Name=Antiword
|
||||
Exec=kantiword a4 "%f"
|
||||
Icon=antiword
|
||||
Type=Application
|
||||
Terminal=0
|
||||
8
Unix-only/KDE3-only/Antiword.desktop.us
Normal file
8
Unix-only/KDE3-only/Antiword.desktop.us
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
BinaryPattern=kantiword;Kantiword
|
||||
MimeType=application/msword
|
||||
Name=Antiword
|
||||
Exec=kantiword letter "%f"
|
||||
Icon=antiword
|
||||
Type=Application
|
||||
Terminal=0
|
||||
BIN
Unix-only/KDE3-only/hi32-app-antiword.png
Normal file
BIN
Unix-only/KDE3-only/hi32-app-antiword.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.5 KiB |
BIN
Unix-only/KDE3-only/hi48-app-antiword.png
Normal file
BIN
Unix-only/KDE3-only/hi48-app-antiword.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.2 KiB |
71
Unix-only/KDE3-only/kantiword.sh
Normal file
71
Unix-only/KDE3-only/kantiword.sh
Normal file
@@ -0,0 +1,71 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Script to make drag and drop in KDE possible
|
||||
#set -x
|
||||
#
|
||||
|
||||
if [ $# -lt 2 ]
|
||||
then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Determine the temp directory
|
||||
if [ -d "$TMPDIR" ] && [ -w "$TMPDIR" ]
|
||||
then
|
||||
tmp_dir=$TMPDIR
|
||||
elif [ -d "$TEMP" ] && [ -w "$TEMP" ]
|
||||
then
|
||||
tmp_dir=$TEMP
|
||||
else
|
||||
tmp_dir="/tmp"
|
||||
fi
|
||||
|
||||
# Try to create the temp files in a secure way
|
||||
if [ -x /bin/tempfile ]
|
||||
then
|
||||
out_file=`/bin/tempfile -d "$tmp_dir" -p antiword -s ".ps"` || exit 1
|
||||
err_file=`/bin/tempfile -d "$tmp_dir" -p antiword -s ".err"`
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
rm -f "$out_file"
|
||||
exit 1
|
||||
fi
|
||||
elif [ -x /bin/mktemp ]
|
||||
then
|
||||
out_file=`/bin/mktemp -q -p "$tmp_dir" antiword.ps.XXXXXXXXX` || exit 1
|
||||
err_file=`/bin/mktemp -q -p "$tmp_dir" antiword.err.XXXXXXXXX`
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
rm -f "$out_file"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
# Creating the temp files in an un-secure way
|
||||
out_file=$tmp_dir"/antiword.$$.ps"
|
||||
err_file=$tmp_dir"/antiword.$$.err"
|
||||
fi
|
||||
|
||||
# Determine the paper size
|
||||
paper_size=$1
|
||||
shift
|
||||
|
||||
# Make the PostScript file
|
||||
antiword -p $paper_size -i 0 "$@" 2>"$err_file" >"$out_file"
|
||||
if [ $? -ne 0 ]
|
||||
then
|
||||
# Something went wrong
|
||||
if [ -r "$err_file" ] && [ -s "$err_file" ]
|
||||
then
|
||||
konsole --caption "Error from Antword" -e less "$err_file"
|
||||
fi
|
||||
# Clean up
|
||||
rm -f "$out_file" "$err_file"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Show the PostScript file
|
||||
gv "$out_file" -nocentre -media $paper_size
|
||||
|
||||
# Clean up
|
||||
rm -f "$out_file" "$err_file"
|
||||
exit 0
|
||||
BIN
Unix-only/KDE3-only/lo16-app-antiword.png
Normal file
BIN
Unix-only/KDE3-only/lo16-app-antiword.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 330 B |
BIN
Unix-only/KDE3-only/lo32-app-antiword.png
Normal file
BIN
Unix-only/KDE3-only/lo32-app-antiword.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 513 B |
49
Unix-only/RPM-only/antiword.spec
Normal file
49
Unix-only/RPM-only/antiword.spec
Normal file
@@ -0,0 +1,49 @@
|
||||
|
||||
%define version 0.33
|
||||
%define release 1
|
||||
%define name antiword
|
||||
|
||||
Summary: an application to display Microsoft(R) Word files.
|
||||
Name: %{name}
|
||||
Version: %{version}
|
||||
Release: %{release}
|
||||
License: GPL
|
||||
Group: Applications/Text
|
||||
Source: http://www.winfield.demon.nl/linux/%{name}-%{version}.tar.gz
|
||||
URL: http://www.winfield.demon.nl/index.html
|
||||
BuildRoot: /var/tmp/%{name}-%{version}
|
||||
Packager: marco antonio cabazal <nightshiphter@yahoo.com>
|
||||
|
||||
%description
|
||||
Antiword is a free MS Word reader for Linux and RISC OS. There are ports to
|
||||
BeOS, OS/2, Mac OS X, Amiga, VMS, NetWare and DOS. Antiword converts the
|
||||
binary files from Word 2, 6, 7, 97, 2000 and 2002 to plain text and to
|
||||
PostScript TM.
|
||||
.
|
||||
|
||||
%prep
|
||||
# nothing to be done here
|
||||
|
||||
%build
|
||||
make all
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
install -d 555 $RPM_BUILD_ROOT/%{_prefix}/bin
|
||||
install -d 555 $RPM_BUILD_ROOT/%{_prefix}/share/antiword
|
||||
install -d 555 $RPM_BUILD_ROOT/%{_prefix}/share/man/man1
|
||||
install -m 555 ./antiword $RPM_BUILD_ROOT%{_prefix}/bin/antiword
|
||||
install -m 555 ./kantiword $RPM_BUILD_ROOT%{_prefix}/bin/kantiword
|
||||
install -m 444 ./Resources/* $RPM_BUILD_ROOT%{_prefix}/share/antiword
|
||||
install -m 444 ./Docs/antiword.1 $RPM_BUILD_ROOT/%{_prefix}/share/man/man1/antiword.1
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc Docs/*
|
||||
%{_prefix}/bin/*
|
||||
%{_prefix}/share/antiword/*
|
||||
%{_prefix}/share/man/man1/*
|
||||
|
||||
2251
Unix-only/fontinfo.h
Normal file
2251
Unix-only/fontinfo.h
Normal file
File diff suppressed because it is too large
Load Diff
207
Unix-only/fontinfo.pl
Executable file
207
Unix-only/fontinfo.pl
Executable file
@@ -0,0 +1,207 @@
|
||||
#! /usr/bin/perl -w
|
||||
#
|
||||
# Generate the fontinformation tables for the required fonts (Linux version)
|
||||
#
|
||||
|
||||
@charnames1 = (
|
||||
"ellipsis", "trademark", "perthousand", "bullet",
|
||||
"quoteleft", "quoteright", "guilsinglleft", "guilsinglright",
|
||||
"quotedblleft", "quotedblright", "quotedblbase", "endash", "emdash",
|
||||
"minus", "OE", "oe", "dagger", "daggerdbl", "fi", "fl",
|
||||
"space", "exclamdown", "cent", "sterling", "currency",
|
||||
"yen", "brokenbar", "section", "dieresis", "copyright",
|
||||
"ordfeminine", "guillemotleft", "logicalnot", "hyphen", "registered",
|
||||
"macron", "degree", "plusminus", "twosuperior", "threesuperior",
|
||||
"acute", "mu", "paragraph", "periodcentered", "cedilla",
|
||||
"onesuperior", "ordmasculine", "guillemotright", "onequarter",
|
||||
"onehalf", "threequarters", "questiondown", "Agrave", "Aacute",
|
||||
"Acircumflex", "Atilde", "Adieresis", "Aring", "AE", "Ccedilla",
|
||||
"Egrave", "Eacute", "Ecircumflex", "Edieresis", "Igrave", "Iacute",
|
||||
"Icircumflex", "Idieresis", "Eth", "Ntilde", "Ograve", "Oacute",
|
||||
"Ocircumflex", "Otilde", "Odieresis", "multiply", "Oslash",
|
||||
"Ugrave", "Uacute", "Ucircumflex", "Udieresis", "Yacute", "Thorn",
|
||||
"germandbls", "agrave", "aacute", "acircumflex", "atilde",
|
||||
"adieresis", "aring", "ae", "ccedilla", "egrave", "eacute",
|
||||
"ecircumflex", "edieresis", "igrave", "iacute", "icircumflex",
|
||||
"idieresis", "eth", "ntilde", "ograve", "oacute", "ocircumflex",
|
||||
"otilde", "odieresis", "divide", "oslash", "ugrave", "uacute",
|
||||
"ucircumflex", "udieresis", "yacute", "thorn", "ydieresis"
|
||||
);
|
||||
|
||||
@charnames2 = (
|
||||
"space", "Aogonek", "breve", "Lslash", "currency", "Lcaron",
|
||||
"Sacute", "section", "dieresis", "Scaron", "Scedilla",
|
||||
"Tcaron", "Zacute", "hyphen", "Zcaron", "Zdotaccent", "ring",
|
||||
"aogonek", "ogonek", "lslash", "acute", "lcaron", "sacute",
|
||||
"caron", "cedilla", "scaron", "scedilla", "tcaron",
|
||||
"zacute", "hungarumlaut", "zcaron", "zdotaccent", "Racute",
|
||||
"Aacute", "Acircumflex", "Abreve", "Adieresis", "Lacute",
|
||||
"Cacute", "Ccedilla", "Ccaron", "Eacute", "Eogonek",
|
||||
"Edieresis", "Ecaron", "Iacute", "Icircumflex", "Dcaron",
|
||||
"Dslash", "Nacute", "Ncaron", "Oacute", "Ocircumflex",
|
||||
"Ohungarumlaut", "Odieresis", "multiply", "Rcaron", "Uring",
|
||||
"Uacute", "Uhungarumlaut", "Udieresis", "Yacute", "Tcommaaccent",
|
||||
"germandbls", "racute", "aacute", "acircumflex", "abreve",
|
||||
"adieresis", "lacute", "cacute", "ccedilla", "ccaron", "eacute",
|
||||
"eogonek", "edieresis", "ecaron", "iacute", "icircumflex",
|
||||
"dcaron", "dmacron", "nacute", "ncaron", "oacute", "ocircumflex",
|
||||
"ohungarumlaut", "odieresis", "divide", "rcaron", "uring",
|
||||
"uacute", "uhungarumlaut", "udieresis", "yacute", "tcommaaccent",
|
||||
"dotaccent"
|
||||
);
|
||||
|
||||
$gs_dir1 = '/usr/share/ghostscript/fonts';
|
||||
$gs_dir2 = '/usr/share/ghostscript/fonts2';
|
||||
|
||||
@fontnames = (
|
||||
"Courier", "Courier-Bold", "Courier-Oblique", "Courier-BoldOblique",
|
||||
"Times-Roman", "Times-Bold", "Times-Italic", "Times-BoldItalic",
|
||||
"Helvetica", "Helvetica-Bold", "Helvetica-Oblique", "Helvetica-BoldOblique",
|
||||
"Palatino-Roman", "Palatino-Bold", "Palatino-Italic", "Palatino-BoldItalic",
|
||||
"Helvetica-Narrow", "Helvetica-Narrow-Bold", "Helvetica-Narrow-Oblique", "Helvetica-Narrow-BoldOblique",
|
||||
"Bookman-Light", "Bookman-Demi", "Bookman-LightItalic", "Bookman-DemiItalic",
|
||||
"AvantGarde-Book", "AvantGarde-Demi", "AvantGarde-BookOblique", "AvantGarde-DemiOblique",
|
||||
"NewCenturySchlbk-Roman", "NewCenturySchlbk-Bold", "NewCenturySchlbk-Italic", "NewCenturySchlbk-BoldItalic",
|
||||
);
|
||||
|
||||
@files = (
|
||||
"n022003l.afm", "n022004l.afm", "n022023l.afm", "n022024l.afm",
|
||||
"n021003l.afm", "n021004l.afm", "n021023l.afm", "n021024l.afm",
|
||||
"n019003l.afm", "n019004l.afm", "n019023l.afm", "n019024l.afm",
|
||||
"p052003l.afm", "p052004l.afm", "p052023l.afm", "p052024l.afm",
|
||||
"n019043l.afm", "n019044l.afm", "n019063l.afm", "n019064l.afm",
|
||||
"b018012l.afm", "b018015l.afm", "b018032l.afm", "b018035l.afm",
|
||||
"a010013l.afm", "a010015l.afm", "a010033l.afm", "a010035l.afm",
|
||||
"c059013l.afm", "c059016l.afm", "c059033l.afm", "c059036l.afm",
|
||||
);
|
||||
|
||||
|
||||
# Generate the array with the fontnames
|
||||
sub generate_fontnames
|
||||
{
|
||||
printf STDOUT "static const char *szFontnames[%d] = {\n", $#fontnames + 1;
|
||||
for ($n = 0; $n <= $#fontnames; $n++) {
|
||||
printf STDOUT "\t\"%s\",\n", $fontnames[$n];
|
||||
}
|
||||
printf STDOUT "};\n";
|
||||
}
|
||||
|
||||
# Generate the array with the character widths
|
||||
sub generate_character_widths
|
||||
{
|
||||
my ($char_set, $gs_dir, @charnames) = @_;
|
||||
my ($n, $i, $file, $name, $start);
|
||||
my (@a, @charwidth);
|
||||
|
||||
if ($char_set == 1) {
|
||||
$start = 140;
|
||||
} else {
|
||||
$start = 160;
|
||||
}
|
||||
printf STDOUT "static unsigned short ausCharacterWidths%d[%d][256] = {\n", $char_set, $#files + 1;
|
||||
for ($n = 0; $n <= $#files; $n++) {
|
||||
$file = $files[$n];
|
||||
$name = $fontnames[$n];
|
||||
open(F_IN, "<$gs_dir/$file") || die "Cannot open $gs_dir/$file";
|
||||
printf STDOUT "\t{\t/* %s */\n", $name;
|
||||
while (<F_IN>) {
|
||||
chop();
|
||||
@a = split(/\s+/);
|
||||
if ($a[0] eq 'UnderlinePosition') {
|
||||
$underlineposition[$n] = $a[1];
|
||||
} elsif ($a[0] eq 'UnderlineThickness') {
|
||||
#printf STDERR "%d %d\n", $a[0], $a[1];
|
||||
$underlinethickness[$n] = $a[1];
|
||||
} elsif ($a[0] eq 'C' && $a[2] eq ';' && $a[3] eq 'WX') {
|
||||
#printf STDERR "%d %d %s\n", $a[1], $a[4], $a[7];
|
||||
if (($a[1] < 0 || $a[1] >= 129) && defined($a[7])) {
|
||||
for ($i = 0; $i <= $#charnames; $i++) {
|
||||
if ($charnames[$i] eq $a[7]) {
|
||||
$charwidth[$start + $i] = $a[4];
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
if ($a[1] >= 0 && $a[1] <= 128 && !defined($charwidth[$a[1]])) {
|
||||
$charwidth[$a[1]] = $a[4];
|
||||
}
|
||||
}
|
||||
if (defined($a[7])) {
|
||||
for ($i = 0; $i <= $#charnames; $i++) {
|
||||
if ($charnames[$i] eq $a[7]) {
|
||||
$charwidth[$start + $i] = $a[4];
|
||||
last;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
close(F_IN);
|
||||
|
||||
# Set the width of the control characters zero
|
||||
for ($i = 0; $i < 32; $i++) {
|
||||
$charwidth[$i] = 0;
|
||||
}
|
||||
# Set the width of the unused characters to zero
|
||||
for ($i = 127; $i < $start; $i++) {
|
||||
$charwidth[$i] = 0;
|
||||
}
|
||||
|
||||
# Print the results
|
||||
for ($i = 0; $i < 256; $i += 8) {
|
||||
printf STDOUT "\t/* %3d */ ", $i;
|
||||
for ($j = 0; $j < 8; $j++) {
|
||||
if (!defined($charwidth[$i + $j])) {
|
||||
printf STDERR "%d:%s: character %3d is undefined\n", $char_set, $name, $i + $j;
|
||||
$charwidth[$i + $j] = 0;
|
||||
}
|
||||
printf STDOUT "%5d,", $charwidth[$i + $j];
|
||||
}
|
||||
printf STDOUT "\n";
|
||||
}
|
||||
printf STDOUT "\t},\n";
|
||||
undef @charwidth;
|
||||
}
|
||||
printf STDOUT "};\n";
|
||||
}
|
||||
|
||||
# Generate the array with the underline information
|
||||
sub generate_underline_information
|
||||
{
|
||||
printf STDOUT "#if 0 /* Until this array is needed */\n";
|
||||
|
||||
printf STDOUT "static int aiUnderlineInfo[%d][2] = {\n", $#fontnames + 1;
|
||||
for ($n = 0; $n <= $#fontnames; $n++) {
|
||||
if (!defined($underlineposition[$n])) {
|
||||
$underlineposition[$n] = 0;
|
||||
}
|
||||
if (!defined($underlinethickness[$n])) {
|
||||
$underlinethickness[$n] = 0;
|
||||
}
|
||||
printf STDOUT "\t{ %d, %d },\n", $underlineposition[$n], $underlinethickness[$n];
|
||||
}
|
||||
printf STDOUT "};\n";
|
||||
|
||||
printf STDOUT "#endif /* 0 */\n";
|
||||
}
|
||||
|
||||
|
||||
# main()
|
||||
|
||||
if ($#fontnames != $#files) {
|
||||
die "The fontnames-array and the files-array are of unequel length";
|
||||
}
|
||||
if ($#charnames1 != 255 - 140) {
|
||||
die "The charname1 table length is $#charnames1";
|
||||
}
|
||||
if ($#charnames2 != 255 - 160) {
|
||||
die "The charname2 table length is $#charnames2";
|
||||
}
|
||||
|
||||
printf STDOUT "/* THIS FILE IS AUTOMATICALLY GENERATED - DO NOT EDIT! */\n";
|
||||
|
||||
&generate_fontnames();
|
||||
&generate_character_widths(1, $gs_dir1, @charnames1);
|
||||
&generate_character_widths(2, $gs_dir2, @charnames2);
|
||||
&generate_underline_information();
|
||||
|
||||
exit 0;
|
||||
Reference in New Issue
Block a user