[Po4a-devel]Line counting

Nicolas François nicolas.francois@centraliens.net
Fri, 5 Nov 2004 23:42:48 +0100


--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

On Fri, Nov 05, 2004 at 10:38:17PM +0100, Denis Barbier wrote:
> As you have free time, we could discuss about the next release ;)
> IMO 0.19 could be packaged, the only missing pieces I would like to
> have are the 'po4a-normalize -M' and 'po4a-translate -L' flags to
> specify charset encodings.
> 
> Jordi, others, any comments about a new release?

Regarding the man module, I would still like to :

 * add the changelog entries ;)
   done, has to be committed (and maybe proofread by a DD)
 * fix the documentation
   almost finished
   The changes mostly consist in removing the mention of the nested font
   modifiers issue and updating of the stats of the man module.
     => this should not require a lot of work for the translators
 * I still have a dozen of pages which report a "Nested font modifiers"
   error. This is not due to a "Nested font modifier", but to a remaining
   \fR in the manpage. I've got a fix for this, and I plan to remove the
   die..."Nested font..." message.

With a little chance, it will be a rainy week-end, and I will have time to
do this.

Some (at least one) strings have been added with the font stack patch.
This will also require a little translation work.


Regarding the 'po4a-normalize -M', here is a patch that should do the
trick.
(It was tested with the testsuite, but I would prefer that somebody have
a look at it)


Kind Regards,
-- 
Nekral

--ZGiS0Q5IWpPtfppv
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="po4a-normalize-M.patch"

--- po4a-normalize	2004-07-19 12:21:12.000000000 +0200
+++ ../../po4a/po4a-normalize	2004-09-29 20:06:36.000000000 +0200
@@ -111,10 +111,13 @@
 
 my ($help_fmt,$help,$type,$debug,$verbose,@options);
 Getopt::Long::Configure('no_auto_abbrev','no_ignore_case');
+my ($mastchar);
 GetOptions(
         'help|h'       => \$help,
 	'help-format'  => \$help_fmt,
         'format|f=s'   => \$type,
+
+	'master-charset|M=s'    => \$mastchar,
     
         'option|o=s'    => \@options,
 
@@ -144,6 +147,8 @@
 -e $filename || die sprintf(gettext("File %s does not exist."),$filename)."\n";
 
 $parser->read($filename);
+$parser->{TT}{utf_mode} = 1;
+$parser->{TT}{file_in_charset} = $mastchar;
 $parser->parse();
 $parser->write('po4a-normalize.output');
 $parser->writepo('po4a-normalize.po');

--ZGiS0Q5IWpPtfppv--