1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
1, a,My compiler complains that it cannot find function "char *_(char *)"
b,I cannot link wp2latex and compiler complains that the library "-libintl"
is not present.
2, GCC reports that it cannot find "cc1plus"
3, Do you also plan to write convertor from LaTeX to WP?
4, You should distribute wp2latex as TAR archive!
5, How to convert documents WPxxx to word?
6, My compiler complains:
atoms/struct.cc:non-lvalue in unary `&' short unsigned int' is promoted
to `int' when passed through `...'
7, I have wrongly converted (greek) characters inside formulas
8, I prefer \texbf{ } before \bf
9, Output of wp2latex is very complex. Is it possible to obtain plain text without formatting?
10,My compiler complains:
wp2latex.cc:576: `open_memstream' undeclared (first use this function)
wp2latex.cc:640: `fmemopen' undeclared (first use this function)
11,A character "z Charon" is crippled
12,WP2LaTeX was compiled as wp2latex.exe under UNIX system.
-----------------------------------------------------------------------------
1,a,My compiler complains that it cannot find function "char *_(char *)"
b,I cannot link wp2latex and compiler complains that the library "-libintl"
is not present.
You do not have installed library "gettext". This library can be found
on any SunSite mirror.
The easiest method is to disable it by editing makefile.
Comment the line:
GETTEXT=-D__gettext__
to:
#GETTEXT=-D__gettext__
do "make clean" and "make" again.
b,A lot of linuxes has a libintl.a library included in their libc.
Thus sometimes will help commenting out a line (or sometimes may help
reverse uncommenting this line).
libs=-lintl
2,GCC reports that it cannot find "cc1plus"
I guess that your gcc instalation is messy. You probably have instaled
"egc" and you have some fragments of old "gcc" on you hard drive.
Try to change GCC=egcs (or egc?) in the makefile. Sometimes works
also GCC=g++. Because this is not my problem read gcc documentation.
3,Do you also plan to write convertor from LaTeX to WP?
Unfortunatelly no. Somebody told me, that he will do it, but
I don't know more.
If you want me to write something like LaTeX2WP you should
pay a normal tax for programmer and I will do it on comercional basis.
Or you may decide to do it yourselves.
4,You should distribute wp2latex as TAR archive!
I don't think so. I have 2 reasons for using zip.
a,wp2LaTeX could be alse compiled under DOS and WINDOWS. In these OS the tar
and gzip archivers are not common.
b,I hate tar/gzip archives because one bad byte will destroy all data. In the
zip archive only current file is malformed.
c,You could redistribute wp2latex as tar archive if you want to do this.
Meanwhile fresh.t automatically mirrors wp2latex and it is abble to change
distribution to .tar.ga as you wish.
Please visit: http://fresh.t-systems-sfr.com/linux/src/
if you want to switch to another type of distribution archive.
5,How to convert documents WPxxx to word?
Sorry, I am not a hot line of M$ Word.
I'll give you one advice: WP8.x could import WP3-8.x and it could export RTF.
6, Some new compilers expands all values passed through ellipse ... to integer.
Some compilers do not this. This feature is already fixed for gcc>3.0.
The easiest way for you is to edit file: sources.cc/atoms/include/common.h
and add following line into the file:
#define __Ellipsis_Expand_Short
and recompile your project.
If you have some hitherto unsupported compiler, it will be good idea to report such
situation and include autodetection for such particular compiler.
7,I have wrongly converted (greek) characters inside formulas
This problem occurs mainly for localised WP mutations that have e.g.
"me" instead of most commoc "mu". I have no idea how to detect such localisation
and even WordPerfect itself do not display these strings as expected characters.
Please complain to your WP vendor ask them to help because I cannot do
more.
8, I prefer \texbf{ } before \bf:
Please edit the file wp2l_lib.cc and change the structure
char *Open_com[27] = {
"{\\LARGE ", "{\\Large ", "{\\large ", "{\\small ", "{\\footnotesize ",
"$^{{\\rm ", "$_{{\\rm ", "{\\fontshape{ol}\\selectfont ", "{\\it ", "", "\\textcolor{red}{", "\\uuline{",
"{\\bf ", "\\sout{", "\\uline{", "{\\sc ", "{\\tt ",
"\\part{", "\\chapter{", "\\section{", "\\subsection{", "\\subsubsection{",
"\\paragraph{", "\\subparagraph{","{","{","\\iffalse "
};
and also:
char *Close_com[27]
String from Open_com is emited when style/font shape is opened and the string
from Close_com is emited when the style/font shape is closed.
PLEASE NEVER SHRINK THESE ARRAYS, IT WILL LEAD TO PROTECTION FAULT ONLY.
Keep in mind that the position of TeX commands cannot be changed so easily and
that Open_com[i] corresponds to Close_com[i].
9,Output of wp2lated is very complex. Is it possible to obtain plain text without
formatting?
Basically you could do 2 things:
a, turn off several packages. Please counsult wp2latex manual about these switches.
The resulting command line looks like this:
wp2latex -no-ulem -no-wasy input.wp output.tex
b, In some special situation even this removing of packages is not sufficient.
You have last chance: use switch -no-erase-strip
This switch causes that partialy converted temporary files remains
on your disk. There is no paragraph formating in these files. You have to
do it manually.
10, My compiler complains:
wp2latex.cc: In function `int main(int, char**)':
wp2latex.cc:576: `open_memstream' undeclared (first use this function)
wp2latex.cc:576: (Each undeclared identifier is reported only once for each
function it appears in.)
wp2latex.cc:640: `fmemopen' undeclared (first use this function)
make[1]: *** [wp2latex.o] Error 1
Please edit common.h and undefine (comment) _has_MemStreams
#define _has_MemStreams
It will disable memory streams and fix the problem. The memstreams were
originally used because there was one requirement that no temporary file should be created.
Current './configure' script also addresses this issue unless you have some
exotic compiler.
11,A character "z Charon" is crippled
I guess that you have ignored a message:
"Warning: Please add user character No:%d into external config file!
"
This situation is newly produced from Word output filter that converts several
characters into a character set 12 that represents a current Windows font,
ugly isn't it?
Please create WP2LaTeX configuration file or add something like this into it.
[WPUserChars]
158 \v{z}
Then call "WP2LaTeX -configfile xxxx.cfg"
12, WP2LaTeX was compiled as wp2latex.exe under UNIX system.
The version 3.12 compiled on my Debian Linux system
without problems. Using the routine "make install"
copied the binary from sources.cc into the folder
/usr/local/bin as "wp2latex.exe".
The extension should be avoided under Linux ... (;-))
The problem is that OSTYPE system variable is not exported for
all shells. WP2LaTeX from 3.22 attempts to fix it. Try to type
"export OSTYPE" and then do "make". If it fails please report
this as a bug.
|