Comments (14)
it fixes apt build thank you
from po4a.
For reference:
The po4a error message:
Simple quote (') matched with double quote (") in docbook opt:" -o untranslated='<term><option> <refname> <refentrytitle> <date> <refentryinfo> <phrase> <variablelist> <term><command>' -o break='<term><option> <term><command>' -o nodefault='<option> <refname> <refentrytitle> <date> <refentryinfo> <phrase> <variablelist> <command>' -o inline='<para><option> <refentrytitle> <para><command> <programlisting><command> <refentrytitle><command> <refpurpose><command>' -o translated='<para><command> <programlisting><command> <refentrytitle><command> <refpurpose><command>'" at /usr/bin/po4a line 882, <CONFIG> line 11.
Relevant po4a.conf lines:
[po4a_alias:manpage] docbook opt:"\
-o untranslated='<term><option> <refname> <refentrytitle> <date> <refentryinfo> <phrase> <variablelist> <term><command>' \
-o break='<term><option> <term><command>' \
-o nodefault='<option> <refname> <refentrytitle> <date> <refentryinfo> <phrase> <variablelist> <command>' \
-o inline='<para><option> <refentrytitle> <para><command> <programlisting><command> <refentrytitle><command> <refpurpose><command>' \
-o translated='<para><command> <programlisting><command> <refentrytitle><command> <refpurpose><command>'"
from po4a.
It would be possible to work around this by using backslash-escaped quotation marks.
diff --git a/doc/po4a.conf b/doc/po4a.conf
index 0798eac68..1adc26b7e 100644
--- a/doc/po4a.conf
+++ b/doc/po4a.conf
@@ -4,11 +4,11 @@
# Entities need to be present, even if not translated
[po4a_alias:entity] text opt:"-k 0"
[po4a_alias:manpage] docbook opt:"\
- -o untranslated='<term><option> <refname> <refentrytitle> <date> <refentryinfo> <phrase> <variablelist> <term><command>' \
- -o break='<term><option> <term><command>' \
- -o nodefault='<option> <refname> <refentrytitle> <date> <refentryinfo> <phrase> <variablelist> <command>' \
- -o inline='<para><option> <refentrytitle> <para><command> <programlisting><command> <refentrytitle><command> <refpurpose><command>' \
- -o translated='<para><command> <programlisting><command> <refentrytitle><command> <refpurpose><command>'"
+ -o untranslated=\"<term><option> <refname> <refentrytitle> <date> <refentryinfo> <phrase> <variablelist> <term><command>\" \
+ -o break=\"<term><option> <term><command>\" \
+ -o nodefault=\"<option> <refname> <refentrytitle> <date> <refentryinfo> <phrase> <variablelist> <command>\" \
+ -o inline=\"<para><option> <refentrytitle> <para><command> <programlisting><command> <refentrytitle><command> <refpurpose><command>\" \
+ -o translated=\"<para><command> <programlisting><command> <refentrytitle><command> <refpurpose><command>\""
# define source file and translated file (one file per line)
[type: entity] apt.ent $lang:$lang/apt.ent
from po4a.
Cool, thanks for the report, the patch and the test that it works at least in Homebrew, you really rock.
Could someone also open a bug against apt in Debian so that this patch gets merged upstream, please? You can tell the apt maintainer that po4a 0.70 is coming to Debian. It will happen at some point :)
Thanks again for being such a wonderful community :)
from po4a.
Thanks for the compliments, it's an honor 😉
if is an apt issue should I send a merge request to https://salsa.debian.org/apt-team/apt ?
Thank you
from po4a.
I do understand it's hard to parse quotes with all the corner cases like "'"'"
, but the current syntax in the config looks better than the proposed workaround.
Maybe it would be better to fix it in po4a and do a quick bugfix release?
from po4a.
Yeah, I feel like it should be fixed in po4a if it is a simple fix, but if it takes long, we should at least patch on the apt side as well.
from po4a.
I think I got this working. At least it works on my synthetic tests, and I would appreciate if someone could test whether it helps for the apt config file too, please.
from po4a.
This confirms the idea of having a release in 2 days, then. Thanks for the testing.
from po4a.
huch , I just received another bug report
Summary: debhelper-13.11.6-3.fc41 FTBFS: UTF-8 "\xF3" does not map to Unicode at /usr/share/perl5/vendor_perl/Locale/Po4a/TransTractor.pm line 583
This failure is probably triggered by upgrading po4a from 0.69-5.fc40 to 0.70-2.fc41 ( 0.70-2 the release 2 means that have the fix here already)
https://bugzilla.redhat.com/show_bug.cgi?id=2266008
from po4a.
I'm going to open a new issue
from po4a.
Hi, I just discovered another bug, when I build apt, I will open a new issue once I got enough data to report
from po4a.
hihi, that's a bit repetitive, but that's still a funny game. Thanks for the testing, @sergiomb2.
from po4a.
Ok, closing this bug since you opened another one (as you should).
Thanks,
from po4a.
Related Issues (20)
- Mb -> MB in the po4a-gettextize docs
- Weblate: Set a repository browser URL for po4a-doc HOT 5
- How to generate Markdown without line wrap? HOT 2
- UTF-8 "\xF3" does not map to Unicode at /usr/share/perl5/vendor_perl/Locale/Po4a/TransTractor.pm line 583 HOT 5
- seems update to po4a to 0.70 the alternate language man pages are no longer installed. HOT 5
- Accept-Languages + Accept on website returns incorrect languages HOT 3
- docbook: Multiline entities not translated HOT 3
- Failed to run 'po4a-gettextize' for 'sgml' format (Error while running onsgmls -p) HOT 2
- Feature Request: Keep maintaining 'po4a-xxx' utilities HOT 4
- #☑️
- Malformed encoding while writing to file <output> with charset utf-8: Unknown failure HOT 3
- Error while build v0.71 on openSUSE HOT 11
- Markdown tables not parsed properly
- Lots of warnings and errors when building texinfo-docs with po4a-traslated texinfo.texi HOT 1
- Is it possible to use translated (but outdated version) of changed paragraph in translated file? HOT 2
- second argument to Locale::Po4a::TransTractor::read now mandatory HOT 2
- Problem after PerlIO overhaul in v0.70 HOT 9
- Fails to build with perl 5.40 HOT 2
- Add custom placeholders for po4a componentes in Weblate HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from po4a.