summaryrefslogtreecommitdiff
path: root/xml2po/ChangeLog
blob: fe5535ea0f0931960ce555cc8dbfe0e3d4d14b92 (plain)
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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
2005-02-23  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (replaceNodeContentsWithText): Use ParserCtxt instead.

2005-02-23  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (replaceNodeContentsWithText): Add DTD here as well.

2004-12-23  Danilo Šegan  <dsegan@gmx.net>

	* TODO: Added tag-simplifying request by Francesco.

2004-12-07  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py: Not usable as a module (if __name__!='__main__').

2004-12-07  Danilo Šegan  <dsegan@gmx.net>

	Fix for #160354 by Satoru Satoh <ss@gnome.gr.jp>.
	
	* xml2po.py (usage): Separate usage message.
	(args): catch getopt exceptions.

2004-10-09  Danilo Šegan  <dsegan@gmx.net>

	* modes/docbook.py (docbookXmlMode.getSpacePreserveTags): Add
	'classsynopsisinfo', 'funcsynopsisinfo', 'synopsis', as per
	DocBook Definitive Guide.

2004-09-28  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (tryToUpdate): s/e:/e/ (extract-all-entities needs no
	parameter).
	(tryToUpdate): Don't append ".po" to lang.

2004-09-25  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py: Add "-e" option to do .replaceEntities(1).

2004-09-16  Danilo Šegan  <dsegan@gmx.net>

	* modes/docbook.py (docbookXmlMode.getSpacePreserveTags): Add
	'screen' and 'literallayout'.

	* xml2po.py (MessageOutput.outputAll): Output "no-wrap" if needed.
	(MessageOutput.__init__): Add nowrap hash.
	(MessageOutput.outputMessage): Set nowrap for space-preserving messages.

	* TODO (TODO): More suggestions from Karl.

2004-09-15  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (normalizeString): No, never ends: remove more
	debuging output.

2004-09-15  Danilo Šegan  <dsegan@gmx.net>

	* TODO (TODO): Uhm, it was Karl Eichwalder who proposed these, not
	Keld (embarrasment never ends!).

	* xml2po.py: Remove embarrasing debugging printouts.

2004-09-14  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (normalizeString): Fix the crash below: this now
	reports some errors when messages contain entities, and they're
	not correctly normalized, but at least it doesn't crash (only
	when used with -k option).

2004-09-14  Danilo Šegan  <dsegan@gmx.net>

	* TODO (TODO): Add some items suggested by Keld.

	* configure.ac: Version up to 1.0.11.

	* xml2po.py (stringForEntity): Use expand_entities variable.
	Add expand_entities variable and "-k", "--keep-entities" options
	(this currently crashes with the "Segmentation fault" — need to
	look into it).

2004-06-19  Danilo Šegan  <dsegan@gmx.net>

	* NEWS: Documented changes in 1.0.8, 1.0.9 and 1.0.10.

	* configure.ac: Move version up to 1.0.10.

	* README.in (Updating a translation): Changed recommendations for
	"-u" option.
	* xml2po.py: Suggest full filename for "-u" option.

	* xml2po.py (MessageOutput): Add support for translations.
	Add "-r" parameter for reusing translations.

	* TODO (TODO, DONE): Updated with new goals and achievements.

2004-04-17  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (replaceNodeContentsWithText): Handle whitespace-only
	fields.

2004-04-12  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (xml_error_handler): Use empty error handler.
	(normalizeString): Set up error handling for parsing.
	(replaceNodeContentsWithText): Likewise.

2004-04-12  Danilo Šegan  <dsegan@gmx.net>

	* modes/docbook.py: Add "coding: utf-8" comment for Python 2.3's sake.

2004-04-07  Danilo Šegan  <dsegan@gmx.net>

	* configure.ac: Push version number to 1.0.9.

	* modes/docbook.py (docbookXmlMode.postProcessXmlTranslation): Support "book" as well.
	(docbookXmlMode._find_articleinfo): Support "bookinfo" as well.

2004-03-18  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (MessageOutput.outputAll): Add space for other than
	first lines of multi-line comments.
	Call preProcessXml before traversing document tree.

	* modes/empty.py (emptyXmlMode.preProcessXml): Added.
	* modes/gs.py (gsXmlMode.preProcessXml): Added.

	* modes/docbook.py (docbookXmlMode.preProcessXml): Added with
	function _output_images which outputs simple messages for image
	files.

	* xml2po.py (MessageOutput): Move PO file output stuff into
	separate class, use global variable "msg" to access it.
	Use preProcessXml for each document.

2004-03-18  Danilo Šegan  <dsegan@gmx.net>

	* Rerelease 1.0.7.1 with correct version number.
	* Makefile.am (xml2po): Make xml2po depend on configure.ac as well.

2004-03-18  Danilo Šegan  <dsegan@gmx.net>

	* configure.ac: Push version to 1.0.7.
	* NEWS: Document 1.0.7 news.

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py: Support multi-line comments.

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* modes/docbook.py (docbookXmlMode.getFinalTags): Add
	"programlisting" to the list.

	* Makefile.am (publish): Don't hide the scp command.

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* .cvsignore: Add xml2po.pc.

	* Makefile.am: Add pkg-config related stuff.
	* configure.ac: Added code to install pkg-config files.
	* xml2po.pc.in: Added.

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* modes/docbook.py (docbookXmlMode._find_lastcopyright): Treat
	case when there's no children.
	(docbookXmlMode.postProcessXmlTranslation): Likewise.
	Handle case without a year.

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* modes/.cvsignore: Add *.pyc.
	* examples/.cvsignore: Add *.pot.

	* Makefile.am (xml2po): Use $(top_srcdir) when referencing
	xml2po.py, so builds outside top directory work.

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* Finally release 1.0.6 — this is release with major changes.
	
	* NEWS: Update with new entries.
	* xml2po.py (escapePoString): Replace "\t" with "\\t" as well.

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* TODO: Mention checking for msgfmt and msgmerge.

	* README: Document "gs" usage.
	* modes/Makefile.am (common_DATA): Add gs.py.
	* modes/gs.py (gsXmlMode): Added mode for handling Gnome Summaries.
	* examples/one.po: Updated example (gnome summary).

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (args): Exit when printing version.

	* Makefile.am (publish): Replace spaces with tab so it might even work.

	* modes/docbook.py (docbookXmlMode.postProcessXmlTranslation): Small fix.

	* configure.ac: Removed subst of PACKAGE_VERSION.

	* xml2po.py: Handle undefined translator credits message in modules.
	Output a warning when module can't be loaded.

	* README.in: Installation instructions.
	* NEWS: Mention autotools switch.
	* TODO (DONE): Move installation TODOs.

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* configure.ac: Added check for libxml2.

2004-03-14  Danilo Šegan  <dsegan@gmx.net>

	* autogen.sh: Added.

	* Makefile.am: Added CLEANFILES.
	(README): Add "publish" target to the Makefile.am.

	* README.in, README: Replaced README with README.in.
	
	* AUTHORS: Added.
	
	* Makefile: Removed, replaced with autotools.
	
	* configure.ac: Add autotools configuration.
	* Makefile.am: Likewise.
	* examples/Makefile.am: Likewise.
	* modes/Makefile.am: Likewise.

	* final-tags, ignored-tags: Removed.
	
	* .cvsignore: Add bunch of autogenerated files.
	* examples/.cvsignore: Likewise.
	* modes/.cvsignore: Likewise.

2004-03-13  Danilo Šegan  <dsegan@gmx.net>

	* README: Document document type module development and usage.

	* NEWS (Changes): Document changes to options.

	* xml2po.py (args): Drop options -f, -i. Replace "-m" with option
	"-mode" to specify document mode.
	(read_tags): Drop function.
	(read_finaltags): Don't read files anymore.
	(read_ignoredtags): Likewise.
	(tryToUpdate): Update list of options and option handling.

2004-03-13  Danilo Šegan  <dsegan@gmx.net>

	* TODO: Reflect current state.

2004-03-13  Danilo Šegan  <dsegan@gmx.net>

	* NEWS: Document changes.

	* xml2po.py (load_mode): Function to dynamically load module.
	Try to load default_mode (docbook), else use automatic detection.

	* modes/docbook.py: Add docbookXmlMode suitable for DocBook.

	* modes/empty.py: Add emptyXmlMode prototype which does nothing.

	* xml2po.py (escapePoString): Add "\n" to escaping.

2004-03-13  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (outputMessage): escapePoString *after* normalizeString.
	(startTagForNode): Add support for namespaces.

	* xml2po.py (isSpacePreserveNode): Add function to detect
	xml:space="preserve".
	(processFinalTag): Use isSpacePreserveNode function.
	(processElementTag): Likewise.
	(normalizeNode): Likewise.

2004-03-13  Danilo Šegan  <dsegan@gmx.net>

	* NEWS: Document fixes for version 1.0.6.

	* TODO: Document fixes for escaping strings.

	* xml2po.py (escapePoString): Separate escaping into function.
	(outputMessage): Use escapePoString here.
	(normalizeString): Don't escape string here (now we're working
	with unescaped string everywhere).
	(getTranslation): Don't replace "&" with "&amp;".

2004-03-12  Danilo Šegan  <dsegan@gmx.net>

	* NEWS: Mention fixes in 1.0.5. Publish a release.

2004-03-12  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (read_finaltags): Add orderedlist for better DocType handling.
	(read_ignoredtags): Likewise.
	(normalizeString): Improve handling of entities (include DTD at
	the start of temporary string).

	* TODO: Updated to reflect current state.

	* README: Push version to 1.0.5.
	(Caveats): Document obscure behaviour.

	* COPYING: Add COPYING (GPLv2 license text).
	
	* Makefile (VERSION): Push VERSION to 1.0.5.
	(DIST): Add COPYING.

	* xml2po.py (replaceNodeContentsWithText): Small bugfix 
	(s/outtxt/text/).
	(stringForEntity): Add function to produce a string with
	replaced entities.
	(isExternalGeneralParsedEntity): Add hackish function to
	recognize if a entity reference node is external parsed entity.
	(doSerialize): Correct handling of entities (both external and
	other).
	(VERSION): Push up to 1.0.5.

2004-03-10  Danilo Šegan  <dsegan@gmx.net>

	* TODO (TODO): More TODOs before 1.1.

2004-03-08  Danilo Šegan  <dsegan@gmx.net>

	* Makefile: push VERSION to 1.0.4, release.

2004-03-08  Danilo Šegan  <dsegan@gmx.net>

	* .cvsignore: Added with *.tar.gz.

2004-03-08  Danilo Šegan  <dsegan@gmx.net>

	* README: Updated with requirements and new options.

	* xml2po.py: Updated help message for new options.

	* NEWS (Improvements): New "-u" option.
	* TODO (DONE): Move "-u" option.

	* xml2po.py (tryToUpdate): Add function for processing "-u"
	option.

2004-03-08  Danilo Šegan  <dsegan@gmx.net>

	* TODO (DONE): Move TODO for "-p" option here.
	* NEWS (Improvements): Document "-p" option.
	* xml2po.py (args): Added "-p" option.

2004-03-07  Danilo Šegan  <dsegan@gmx.net>

	* TODO (DONE): Move "-a" option here.
	(BUGS): document entity handling bugs.

2004-03-07  Danilo Šegan  <dsegan@gmx.net>

	* NEWS: Document new features.

	* TODO (BUG): Document external entities.

	* xml2po.py (worthOutputting): Fix in detecting non-empty nodes.
	(autoNodeIsFinal): Add function to automatically detect nodes
	which are final.
	(isFinalNode): Add automatic detection of tags.
	(ignoreNode): When automatically detecting, ignore no nodes.

	* xml2po.py: Add "-a" option for automatic detection of tags.

2004-03-07  Danilo Šegan  <dsegan@gmx.net>

	* NEWS: Added NEWS entry for 1.0.3.

	* xml2po.py (VERSION): Push up to 1.0.3, release.

	* Makefile: Push VERSION up to 1.0.3, add rule for publishing a
	tarball.

2004-03-06  Danilo Šegan  <dsegan@gmx.net>

	* TODO (TODO): Updates to the list.

	* xml2po.py (doSerialize): Use node.serialize() instead of
	node.content for leaf nodes.

2004-03-03  Danilo Šegan  <dsegan@gmx.net>

	* Makefile (DIST): Added NEWS.

	* NEWS: Added with info about 1.0.1 and 1.0.2.

	* xml2po.py (VERSION): Push to 1.0.2.
	* Makefile (VERSION): Likewise.

2004-03-03  Danilo Šegan  <dsegan@gmx.net>

	* TODO (DONE): Mark issue with normalizeString as DONE.

	* xml2po.py (normalizeString): Use libxml2.parseMemory to detect
	ignoreable whitespace, and to otherwise remove whitespace only in
	text nodes (meaning attributes keep their spaces).
	(normalizeNode): Replaces whitespace in text nodes, used in
	normalizeString.

2004-03-03  Danilo Šegan  <dsegan@gmx.net>

	* TODO: Updated and reorganized list of tasks a bit.

2004-03-03  Danilo Šegan  <dsegan@gmx.net>

	* TODO (DONE): Reflect status of translator comments in TODO.

	* xml2po.py (getCommentForNode): Added support for extracting
	translators' comments.

2004-03-03  Danilo Šegan  <dsegan@gmx.net>

	* TODO (DONE): Move "-o" option to reflect status.

	* xml2po.py: Implemented "-o" option for redirecting output to
	file.  Redirected diagnostic output to stderr.

2004-03-03  Danilo Šegan  <dsegan@gmx.net>

	* TODO: Add translators comments to future TODOs.

	* xml2po.py (normalizeString): Use regular expressions to strip
	whitespace (like intltool does now).

2004-03-01  Danilo Šegan  <dsegan@gmx.net>

	* TODO: Add more TODOs.

2004-03-01  Danilo Šegan  <dsegan@gmx.net>

	* Makefile: Improve tarball building (--parents is probably GNU
	extension).

	* examples/*: 
	Moved sr.po and tst.xml into examples as example "one". 
	Added another example (part of Bug-Buddy help document) "two".

2004-03-01  Danilo Šegan  <dsegan@gmx.net>

	* Makefile: Added Makefile for creating tarballs.

2004-03-01  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (worthOutputting): Add function to check if nodes not
	listed in final-tags should be translated (compatibility with
	older xml2po).
	(replaceNodeContentsWithText): Add function (separated out of
	processFinalTag).
	(processElementTag): Use replaceNodeContentsWithText for
	worthOutputting nodes.


	* xml2po.py: Add licence notice at start (GPL), add VERSION number
	(now at 1.0.1) and --version parameter. 
	Remove dependencies on string and types modules.

2004-02-29  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (doSerialize): Split processElementTag function, and
	split that one further into processFinalTag.

	* TODO (TODO): Added more entries.
	(DONE): Move nesting TODO to DONE section. Mention source code
	references as working.

	* xml2po.py: Support extracting POT from more than one XML file.
	(read_tags): Added function for reading tags.
	(read_finaltags): Read final-tags or return defaults.
	(read_ignoredtags): Read ignored-tags or return defaults. 

	* xml2po.py: Added help message.
	Use line numbers when writing out POT file.

	* README: Small fixes, document ignore-tags and final-tags.

	* xml2po.py (doSerialize): Replace parseNodes and mySerialize with
	doSerialize: new function which supports nesting of final tags.

2004-02-13  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (nodeToText): Removed function.

2004-02-13  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py: Nesting of final-tags and splitting them in PO files.

2004-01-23  Danilo Šegan  <dsegan@gmx.net>

	* TODO: Updated with startTagForNode notice.

2004-01-22  Danilo Šegan  <dsegan@gmx.net>

	* xml2po.py (parseNodes): 
	(isFinalNode): put "not node.children" inside isFinalNode.
	(getTranslation): Fix a small bug.

2004-01-22  Danilo Šegan <dsegan@gmx.net>

	* Started ChangeLog.