(this page is translated by Google; We're working hard on a human translation)
Detailed description of the syntax
- Philosophy
- Paragraph text
- Subtitles
- Horizontal lines
- Code
- Off Texy
- Citation
- Links
- Pictures
- Phrases
- Direct HTML
- Lists
- Modifiers
- Typography
- Distribution of very long words
- Tables
- Questions kompatiblity
Philosophy
Texy tool was created to inexperienced users to easily edit website content. Therefore, it is the most intuitive syntax. The intention is that text in a net (unformatted) form was clear and his tušitelný format.
Today Texy serves excellent and experienced experts with HTML. Allows to freely combine Texy registration with HTML tags. Experienced users do not need to learn a new meta-language and fully exploit their knowledge. Texy only simplifies their work.
The initial logic of syntax is not to use any syntax. Just write a plain text. Insertion of advanced information, such as CSS classes or links, disrupt the flow of text. And entered in a manner easily understood by even non-technical users of the establishment.
Paragraph text
In paragraph shall be one or more immediately consecutive lines of text. Odstavečky are separated by a blank line.
První odstavec lorem ipsum dolor sit amet.
Druhý odstavec, který tvoří jeden řádek.
A druhý řádek textu. Texy je spojí. <p>První odstavec lorem ipsum dolor sit amet.</p> <p>Druhý odstavec, který tvoří jeden řádek. A druhý řádek textu. Texy je spojí.</p> In the editing box website (textarea) paragraph division is not between the two lines visible. Thus, it is considered Texy one paragraph.
Line breaks in paragraph enabled the introduction of one gap left:
Kdoví jestli
jestli jsou na měsíci vůbec nějaký stopy
a proč kope kolem sebe kdo se topí
jakej sval to Zemí otáčí <p>Kdoví jestli<br> jestli jsou na měsíci vůbec nějaký stopy<br> a proč kope kolem sebe kdo se topí<br> jakej sval to Zemí otáčí</p> Subtitles
Subtitles can be written now in two ways: by underlining or předsazením.
Each title has its own level. The case underlines the importance of the title character decides podtrhávací. From highest to lowest are as follows: # * = -
Hlavní titulek
**************
Podtitulek
========== <h2>Hlavní titulek</h2> <h3>Podtitulek</h3> The subtitle refers to the level registered předsazením předsazených number of characters. And you can be # or =
True: the more characters, more important title (minimum of two characters, a maximum of seven).
=== Hlavní titulek ===
## Podtitulek As you can see if the subtitle, the characters on the right can be omitted.
Degree titles are always relative! Then find the highest Texy used the title and other titles from relatively differentiated him.
Horizontal lines
Texy knows the ways of the minutes:
--------
******** <hr> <hr> Code
Used for source code. Using an additional module can be activated and syntax. Describes one of the examples in the distribution .
/---code php
function reImage($matches) {
$content = $matches[1];
$align = $matches[5];
$href = $matches[6];
}
\--- <pre class="src-php"><code><span class="php-keyword1">function</span> reImage(<span class="php-var">$matches</span>) {<br> <span class="php-var">$content</span> = <span class="php-var">$matches</span>[<span class="php-num">1</span>];<br> <span class="php-var">$align</span> = <span class="php-var">$matches</span>[<span class="php-num">5</span>];<br> <span class="php-var">$href</span> = <span class="php-var">$matches</span>[<span class="php-num">6</span>];<br>}</code></pre> Note the words php for sign language.
Off Texy
Keyword html or text affects, if the contents will be interpreted as HTML (including tags), or plain text.
/---html
<em>příklad</em>: **this is not strong**
\---
/---text
<em>příklad</em>: **this is not strong**
\--- Distribution blocks (div)
This ability is useful to create more complex documents.
/---div .[header]
content of div
\--- <div class="header"> <p>content of div</p> </div> It is also possible to nest blocks:
/---div .[header]
## This is a header.
/---div
vnořený div
\---
Texy je sexy!
\--- <div class="header"> <h6>This is a header.</h6> <div> <p>vnořený div</p> </div> <p>Texy je sexy!</p> </div> Citation
Quotations are indented, like emails, sign >
> This is a blockquote with two paragraphs.
>
> 640 K should be enough for everyone
>
>:http://www.microsoft.com <blockquote cite="http://www.microsoft.com"> <p>This is a blockquote with two paragraphs.</p> <p>640 K should be enough for everyone</p> </blockquote> Source (URI) is a citation given by colon notation, as shown in the example. Like the blocks can be nested quotes, use them in subtitles, etc.
Links
Links are recorded so that the link text in quotation marks and followed by a colon and the URL. Texy tries to intelligently guess the URL. He can also help by URI enclose it in square brackets. Part http:// is optional.
As it is possible to link files and emails, Texy is transformed into a form that should confuse the spambots.
Look at [homepage | http://texy.info].
Do you know [La Trine | http://www.dgx.cz/trine/]?
[Write me | me@example.com] <p>Look at <a href="http://texy.info">homepage</a>.</p> <p>Do you know <a href="http://www.dgx.cz/trine/">La Trine</a>?</p> <p><a href="mailto:me@example.com">Write me</a></p> Reference
To flow text "defile" loading the URL, it is possible to state all addresses in one place and then just refer to them. This is called reference. In addition to addresses can also add text and reference modifier .
[homepage]: http://texy.info/ Texy .(homepage)
[la trine]: http://www.dgx.cz/trine/
This is [homepage]
Look at [this site | la trine] Pictures
Entered between the brackets with an asterisk:
[* image.gif *] <img src="http://texy.infofiles/1150/image.gif" alt=""> The paragraphs of text is often necessary to choose a picture to be aligned to the left or right edge. To do this using the character < and > used before the right bracket:
[* image.gif <] Left-aligned image
[* image.gif >] Right-aligned image <p><img src="http://texy.infofiles/1150/image.gif" alt="" class="left"> Left-aligned image</p> <p><img src="http://texy.infofiles/1150/image.gif" alt="" class="right"> Right-aligned image</p> Note: In this example Texy used to align the direct style. It is possible to configure the system so that instead of the selected pictures assigned class.
Note: for all (relative) URL of the image, you can set the default directory. In those instances it was the images/ , therefore Texy the directory listed, while in the generated HTML does.
Note: if not implicitly defines an alternative text (how-to below), use the default Texy. Here is a simple image
Dimensions
For local files Texy automatically detects the dimensions. If you want to specify manually enter them as follows:
[* image.gif 10x20 *] <img src="http://texy.infofiles/1150/image.gif" alt="" width="10" height="20"> Event on-mouse-over
And this is already higher school Texy :-) Překlapovací create pictures easily - in one picture there are two URLs separated by |
[* image.gif | image-over.gif *] <img src="http://texy.infofiles/1150/image.gif" alt=""> 
Modifiers
The more they learn in another chapter , but it would be nice to show how the recorded images. Just think modifier for the determination of alternative text and class:
[* image.gif .(alt text)[foto] *] <img src="http://texy.infofiles/1150/image.gif" class="foto" alt="alt text"> Reference
For the same reasons as for the links, it is also possible to record images by using references. It is necessary to define the URL (or more URLs separated by | ) and possibly modifiers.
What a beautiful girl [*picture*] ! <p>What a beautiful girl <img src="http://texy.infofiles/1150/image.gif" alt="my girl"> !</p> Image with description
To give three stars picture and follow label:
[* image.gif *] *** Toto je *popiska* pod obrázkem <div class="figure"><img src="http://texy.infofiles/1150/image.gif" alt=""> <p>Toto je <i>popiska</i> pod obrázkem</p> </div> Phrases
Probably the most common syntax in Texy. In almost all cases, using dual character.
//kurzíva//
*taky kurzíva*
**tučné**
superscript^2 vs. subscript_2
Citace: >>Lorem Ipsum Dolores<<:www.lipsum.com <p><i>kurzíva</i></p> <p><em>taky kurzíva</em></p> <p><b>tučné</b></p> <p>superscript<sup>2</sup> vs. subscript<sub>2</sub></p> <p>Citace: <q cite="http://www.lipsum.com">Lorem Ipsum Dolores</q></p> italics
italic also
bold
stronger emphasis
superscript 2 vs. subscript 2
Quote: Lorem Ipsum Dolores
In the case of a short quotation can be inserted and the source, using the colon notation.
A special case is the "code phrases. Differs from others by its content will no longer be formatted and displayed verbatim:
Odstraňte `<br />` a entitu `&ndash` <p>Odstraňte <code><br /></code> a entitu <code>&ndash</code></p> Note: if you use an element <code> or other (if any) may decide only configuration Texy
The modifier
It can be inserted into every phrase, every character just before closing:
** silný a zelený .{color:green} ** jako Hulk <p><b style="color:green">silný a zelený</b> jako Hulk</p> thick and green like the Hulk
Direct HTML
Texy is not a replacement for HTML. Not seeking alternative ways of registration or HTML. The aim is to simplify the writing of content. If you find one easier to write the structure directly in HTML, you may do so. HTML tags are fully supported.
This <strong class=info>is strong</strong> text.
<br> This is not. <p>This <strong class="info">is strong</strong> text.<br> This is not.</p> Note: Please note that registration Texy adjust attributes and symbols to make them valid (for XHTML output). Likewise, see to the well-formed registration!
Note: Deciding which brand and which attributes can be used in the text is completely user friendly. Demonstrates one example of the distribution.
Lists
Bulleted lists written by * + or - . Must be entered at the start line and it must be followed by a space.
- Red
- Green
- Blue <ul> <li>Red</li> <li>Green</li> <li>Blue</li> </ul> - Red
- Green
- Blue
Numbered Lists
Texy knows these five modes of entry (the first two are equivalent):
1) Učit se
2) Učit se
3) Učit se
a) Dlouhý
b) Široký
c) Krátkozraký
A) DOS
B) Windows
C) Linux
I) Yesterday
II) Today
III) Tomorrow <ol> <li>Učit se</li> <li>Učit se</li> <li>Učit se</li> </ol> <ol style="list-style-type:lower-alpha"> <li>Dlouhý</li> <li>Široký</li> <li>Krátkozraký</li> </ol> <ol style="list-style-type:upper-alpha"> <li>DOS</li> <li>Windows</li> <li>Linux</li> <li>Yesterday</li> </ol> <ol style="list-style-type:upper-roman"> <li>Today</li> <li>Tomorrow</li> </ol> - Learn
- Learn
- Learn
- Long
- Wide
- Shortsighted
- DOS
- Windows
- Linux
- Yesterday
- Today
- Tomorrow
Nested Lists
a) Bird
I) Bird
- Red
- Green
- Blue
II) McHale
III) Parish
b) McHale
c) Parish
1) Bird
2) McHale
3) Parish <ol style="list-style-type:lower-alpha"> <li>Bird <ol style="list-style-type:upper-roman"> <li>Bird <ul> <li>Red</li> <li>Green</li> <li>Blue</li> </ul> </li> <li>McHale</li> <li>Parish</li> </ol> </li> <li>McHale</li> <li>Parish <ol> <li>Bird</li> <li>McHale</li> <li>Parish</li> </ol> </li> </ol> Definition list
Koncert Divokej Bill:
- termín: 9. 12. 2004
- místo: Hala Vodová, Brno
- Cena: 260 Kč <dl> <dt>Koncert Divokej Bill</dt> <dd>termín: 9. 12. 2004</dd> <dd>místo: Hala Vodová, Brno</dd> <dd>Cena: 260 Kč</dd> </dl> - Concert Divokej Bill
- date: 9 12th 2004
- Place: Hall of Water, Brno
- Price: 260 CZK
The modifier
Modifier, which affects the whole list, is placed on the line before him. Other (classic) at the end of the line:
.{color:red}
triangl: .{color:blue}
- trojúhelník .{color:green}
- neladěný bicí hudební nástroj
- tringulační věž - triangle
- triangle
- neladěný percussion instrument
- tringulační Tower
Modifiers
The strongest weapon Texy These types of modifiers:
- (Title) descriptive, add the attribute title (or alt text for images)
-
[class1 class2 #id]determine class and / or element ID - (Class: blue) direct CSS style
- (Target: _blank) or directly write the HTML attributes
- horizontal alignment:
- left <
- Transportation>
- center <>
- justify =
- vertical alignment (for tables)
- top ^
- middle -
- Down _
Modifiers are recorded continuously (without spaces) and must be preceded by a dot. So maybe .(popis)[left] set title attribute for popis the class and left .
Modifiers are always recorded in the far right.
Example of using a modifier to the text paragraph:
Vycentrováno modifikátorem .<>
Obarveno modifikátorem .{color:blue; lang: cs} <p style="text-align:center">Vycentrováno modifikátorem</p> <p lang="cs" style="color:blue">Obarveno modifikátorem</p> Typography
This includes all adjustments and replacement of the text, which govern its appearance in accordance with the typographical rules, etc.:
- "české" 'typografické' uvozovky
- pomlčka vs. spojovník: 10-15 vs. česko-slovenský
- pomlčka: jedna -- dvě
- typografický křížek u rozměrů 10 x 20
- šipky <- a -> a <-> ;
- tři tečky...
- zachování HTML entit &
- náhrady(TM) nebo(R) za příslušné entity(C) - "Czech" typographical "quotation marks
- vs dash. hyphen: 10-15 vs. Czech-Slovak
- dash: one to two
- typographic cross the dimensions 10 × 20
- arrow ← and → and ↔;
- three dots ...
- conservation & HTML entities
- compensation for the ™ or ® © respective entities
work space:
- vkládání nezalomitelných mezer za jednopísmenné předložky (v autě u okna)
- nedělitelné mezery u telefonních čísel +420 776 552 046 vkládání nezalomitelných mezer za jednopísmenné předložky (v autě u okna)
nedělitelné mezery u telefonních čísel +420 776 552 046 Note: Substitution is normally governed by other rules that determine when to replace the symbol and when not to. For example, the arrow -> can not be the end of the line, etc. Therefore, do not be surprised if in some cases fail to pay Texy. If you consider it a mistake, let me know.
Abbreviations, acronyms
Used registration of double parenthesis:
jednoslovné: NATO((North Atlantic Treaty Organisation))
víceslovné: "et al."((a další)) <p>jednoslovné: <acronym title="North Atlantic Treaty Organisation" class="about">NATO</acronym></p> <p>víceslovné: <acronym title="a další" class="about">et al.</acronym></p> Note: the abbr and acronym with distinction .
Clickable URI
Automatic conversion to URIs clickable format (including emails)
další informace na www.dgx.cz a také ... further information on www.dgx.cz and ...
Distribution of very long words
Very interesting and important features Texy. Long words can distort the appearance of pages, therefore the browser should indicate where it can break. Texy these places looking for with regard to national traditions, the word divided according to syllables:
nejneobhospodařovávatelnějšími nejneobhospoda ­ řovávatelnější ­ mi </p Note: limit the word length is optional
Note: the current browser on Gecko (Mozilla, Firefox) are naznačenému cutting blind. I hope that developers will soon eliminate this deficiency. Or try this
Tables
An example of a simple table, with columns separated by |
| first col | second col | third col
| Adam | Eva | Franta And the result is:
| first col | second col | Third col |
| Adam | Eva | Franta |
Header table, we can define the following entry:
|-----------------------------
| First Name | Last Name | Age
|----------------------------
| Jesus | Christ | 33
| Cecilie | Svobodova | 74 | First Name | Last Name | Age |
|---|---|---|
| Jesus | Christ | 33 |
| Cecilia | Svoboda | 74 |
If the head does not row (rows), we can define the level of cells. Simply insert an asterisk immediately after the character |
|* First Name | Jesus | Cecilie
|* Last Name | Christ | Svobodova
|* Age | 33 | 74 | First Name | Jesus | Cecilia |
|---|---|---|
| Last Name | Christ | Svoboda |
| Age | 33 | 74 |
Merging columns
Note the double | |
|-----------------------------
| Name || Age
|----------------------------
| Jesus | Christ | 33 | Name | Age | |
|---|---|---|
| Jesus | Christ | 33 |
Merging lines
Note the sign ^ symbolizing upwards:
|-----------------------------
| First Name | Last Name | Age
|----------------------------
| Bill || 50
| ^| 52
| Jim | Beam | 70 | First Name | Last Name | Age |
|---|---|---|
| Bill | 50 | |
| 52 | ||
| Them | Beam | 70 |
Modifiers
The following rules apply:
- modifier affecting the entire table is inserted immediately before the table
- affecting line is inserted at the end of the line
- affecting the column is inserted at the beginning of the cell (left in a cell)
- and ultimately influencing the cell is inserted at the end of the cell (cell on right)
Look at the example.
.(people)
| .{color: green} first col | second col .>| third col | .{font-style:italic}
| Adam | Eva .{color: blue}| Franta | Here it is:
-
.(people)modifier table -
.{color: green}modifier column -
.{font-style:italic}modifier line -
.{color: blue}as well.>modified cells
So the resulting table looks like this:
| first col | second col | Third col |
| Adam | Eva | Franta |
Compatibility
Texy syntax is not fully compatible with any other system. Some rules are the same, others different again. Texy compatibility with the attempt, it would be forced apart from other systems to distribute the benefits of their irrationality.
I met with the view that Texy has a similar syntax as textiles. I must warn - this similarity you might be fooled. It is only apparent - for example, both systems are used for writing the modifiers parentheses (round, square and folded) and the characters <> for alignment (what else is to use that?). Their importance is not in any system diametrically opposed.
The syntax is chosen so that the most intuitive and natural. Of course, someone else may seem incomprehensible.





