r22382 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Mon Feb 5 18:37:15 UTC 2018
Author: jghali
Date: Mon Feb 5 18:37:15 2018
New Revision: 22382
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22382
Log:
#15099, improve librevenge based import: handle text language <dtardon>
Modified:
trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp
Modified: trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22382&path=/trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp (original)
+++ trunk/Scribus/scribus/plugins/import/revenge/rawpainter.cpp Mon Feb 5 18:37:15 2018
@@ -1697,6 +1697,16 @@
if (propList["fo:hyphenate"])
styleEffects |= ScStyle_HyphenationPossible;
// TODO: handle drop caps
+ if (propList["fo:language"])
+ {
+ QStringList locale;
+ locale.append(propList["fo:language"]->getStr().cstr());
+ if (propList["fo:script"])
+ locale.append(propList["fo:script"]->getStr().cstr());
+ if (propList["fo:country"])
+ locale.append(propList["fo:country"]->getStr().cstr());
+ textCharStyle.setLanguage(locale.join('_'));
+ }
textCharStyle.setFeatures(styleEffects.featureList());
}
More information about the scribus-commit
mailing list