"Fossies" - the Fresh Open Source Software archive

Member "scribus-1.4.3/scribus-1.4.3/scribus/doc/en/lipsum.html" of archive scribus-1.4.3.tar.gz:

Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted source code. That can be also achieved for any archive member file by clicking within an archive contents listing on the first character of the file(path) respectively on the according byte size field.

Adding Sample Text in your Language

Why Sample Text?

When creating page layouts a sample text, also known as “Lorem ipsum” or “lipsum” to typesetting professionals, is often used as a placeholder for actual text before the real text is inserted. The original Lorem ipsum consists of nonsensical Latin, the reason being the desire of typesetters to not distract from the impression of the text layout (font choice, font size, linespacing etc.). This can most easily be achieved with a nonsensical text, as the viewer will not be tempted to read. However, since one of the purposes of a Lorem ipsum is to show all letters in an alphabet, the original may not be well-suited for languages other than English or Latin, as most languages use either an extended Latin alphabet or no Latin alphabet at all.

Scribus makes it very convenient to insert a sample text by simply selecting, then right-clicking a text frame and selecting “Sample Text” from the Context Menu. This allows you to visualize the layout or experiment with different fonts and effects before finalizing your design.

Creating a Sample Text for your Language

This simple HOWTO shows you how easy it is to add your own language or alphabet if it’s not yet included with Scribus.

The structure of a lipsum file is very simple XML, which anyone can create in a text editor. Below is a shortened version of a Finnish sample text.

<?xml version="1.0" encoding="utf8"?>

<p>Vaimo ja mies ajattelivat pitää illallisjuhlat kaikille Rooman silmäätekeville Italiassa.
Vaimo jännitti kovasti ja halusi kaiken  sujuvan täydellisesti. Viime minuuteilla hän tajusi, ettei
hänellä ollut illallisille yhtään etanoita, jolloin hän käski miestään juoksemaan
alas rannalle ja keräämään koriin joitain etanoita.</p>

You can search on the internet for a lipsum in your language – there are many available – or simply create your own. Make sure that you can use and distribute an existing sample text without restrictions. If you create your own Lorem ipsum, you are advised to make sure that the sample text is as nonsensical as possible and that it contains all letters of your alphabet.

Insert the text, replace the name, author and URL data with the correct ones. Then simply put HTML-like tags around each of the paragraphs.

Insert the text, then save is as language.xml, where “language” must be replaced with an ISO 639-1 language code, a two letter abbreviation for the respective language, e.g. ru.xml for Russian. It’s important to make sure that you save the text in UTF-8 encoding. Otherwise, special characters won’t be displayed correctly.

To test your sample text, you can copy it to the subdirectory ~/share/scribus/loremipsum, whose location will vary depending on your operating system and the way you installed Scribus (e.g. /usr/share/scribus/loremipsum on Linux).

Once you made sure that your significant engineering effort works as expected, head over to the Scribus bugtracker, file a bug report with the severity “Feature” and upload your XML file. One of the Scribus developers will add it to the next release of Scribus for all to enjoy.