Detailed description of the syntax
- Philosophy
- Text paragraphs
- Subtitles
- Horizontal lines
- Code
- Disabling Texy
- Quote
- Links
- Pictures
- Phrases
- Direct HTML
- Lists
- Modifiers
- Typography
- Distribution of very long words
- Tables
- Questions kompatiblity
Philosophy
Tool Texy created in order to allow inexperienced users to easily edit website content. Therefore, the most intuitive syntax. The intention is that the text in the net (unformatted) form a clear and its format tušitelný.
Today Texy is excellent and experienced experts with HTML. Allows to freely combine Texy registration HTML tags. Experienced users do not need to learn a new meta-language and full use of their knowledge. Texy only makes them work.
Initial logic syntax is not to use any syntax. Just write a plain text. Insertion extended information, such as CSS classes or links impede the flow of text. And entered in a manner easily understood and non-establishment of users.
Text paragraphs
In paragraph provides that 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 edit box website (td) is the division between the two lines of paragraph apparent. Therefore Texy is considered as one paragraph.
Line breaks in paragraph do this by inserting one space 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 headline has a degree. In the case underscore 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 titles listed předsazením determines the level předsazených number of characters. And you can be # or =
True: the more characters, the more important the title (two characters are the minimum, maximum seven).
=== Hlavní titulek ===
## Podtitulek As you can see if the subtitle, the characters on the right can be omitted.
Degrees subtitles are always relative! Then find the highest Texy used the title and other titles from it relatively bands.
Horizontal lines
Texy knows the ways of the minutes:
--------
******** <hr> <hr> Code
Used for source. Using an additional module can be activated syntax highlighting. Describes one example of 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 to indicate the language.
Disabling Texy
Keyword html or text affects whether content is understood 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**
\--- The distribution of the blocks (div)
This capability is useful to create 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> Quote
Quotes are indented, like emails, >
> 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), the extract is made using colon notation, as shown in the example. Like the blocks can be nested quotes, use them in subtitles, etc.
Links
Links are written so that the link text in quotation marks and followed by a colon and a URL. Texy tries to intelligently guess the URL. Can you also help by URI enclose in square brackets. Part http:// is optional.
As a link is possible to upload 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 URL, it is possible to give all addresses in one place and then just refer to them. This is called reference. The address can be added and the text reference and modified.
[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 square brackets with an asterisk:
[* image.gif *] <img src="files/1150/image.gif" alt=""> The text paragraphs is often necessary to select the image to be aligned to the left or right edge. This can be done using the character < used before the right parenthesis:
[* image.gif <] Left-aligned image
[* image.gif >] Right-aligned image <p><img src="files/1150/image.gif" alt="" class="left"> Left-aligned image</p> <p><img src="files/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 assigning the selected image class.
Note: for all (relative) URL of images is possible to set the default directory. In those instances it was the images/ therefore Texy the directory listed, while in the generated HTML does.
Note: if default is not determined an alternative text (how to below), use Texy default. Here is a simple image
Dimensions
For local files found Texy dimensions automatically. If you want to specify manually enter them as follows:
[* image.gif 10x20 *] <img src="files/1150/image.gif" alt="" width="10" height="20"> Event on-mouse-over
And this was higher school Texy :-) Překlapovací images to create very easily - in one image there are two URLs separated by |
[* image.gif | image-over.gif *] <img src="files/1150/image.gif" alt="" onmouseover="this.src='files/1150/image-over.gif'" onmouseout="this.src='files/1150/image.gif'" onload="var i=new Image();i.src='files/1150/image-over.gif';if(typeof preload=='undefined')preload=new Array();preload[preload.length]=i;this.onload=''"> 
Modifiers
The more they learn in another chapter, but will not hurt you to show how the recorded images. Let's modifier for an alternate text and class:
[* image.gif .(alt text)[foto] *] <img src="files/1150/image.gif" class="foto" alt="alt text"> Reference
For the same reasons as for the links, is able 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="files/1150/image.gif" alt="my girl"> !</p> Image with description
In figure indicate three stars, followed by label:
[* image.gif *] *** Toto je *popiska* pod obrázkem <div class="figure"><img src="files/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 twin 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> italic
italics too
bold
stronger emphasis
superscript 2 vs.. subscript 2
Quote: Lorem Ipsum Dolores
In the case of short quotation can be inserted and the source, using the colon notation.
A special case is the "code phrases. Differs from others that its content will no longer be formatted and displayed literally:
Odstraňte `<br />` a entitu `&ndash` <p>Odstraňte <code><br /></code> a entitu <code>&ndash</code></p> Note: if you use element <code> or other (if any) can be decided simply Texy configuration
The modifier
It can be inserted into every phrase, every character just before the closing:
** silný a zelený .{color:green} ** jako Hulk <p><b style="color:green">silný a zelený</b> jako Hulk</p> strong and green like Hulk
Direct HTML
Texy is not a replacement for HTML. Not looking for alternative ways to write or HTML. The aim is to simplify the writing of content. If you find one easier to write the structure directly in HTML, you can 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 the registration Texy adjust attributes and tags to be 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 fully user-controllable. Demonstrates one example of the distribution.
Lists
Bulleted lists by writing a * + or - Must be registered at the start line and it must follow 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 ways to write (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 12. 2004
- Place: Hall 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
- percussion instrument neladěný
- tringulační Tower
Modifiers
Strongest weapon Texy These types of modifiers:
- (title) descriptive, add the title object (or an alternative for images)
-
[class1 class2 #id]determine class and / or element ID - (class: blue) a direct writing style
- (target: _blank) or direct writing HTML attributes
- horizontal alignment:
- left <
- Transportation>
- center <>
- justify =
- vertical alignment (for tables)
- top ^
- middle --
- Down _
Modifiers are recorded continuously (without spaces) and prior period. So .(popis)[left] set title attribute for popis a class to left
Modifiers are always recorded in the far right.
Example of using the modifier paragraph of text:
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 allowances and reimbursement 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. dash: 10-15 vs. Czech-Slovak
- dash: one-two
- typographic cross the dimensions 10 × 20
- ← and → arrows and ↔;
- ellipsis ...
- maintaining HTML entities &
- compensation ™ or ® as the © entity
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 a symbol of the Sun For example, the arrow -> can not be the end of the line, etc. Therefore, do not be surprised if in some cases Texy fails to pay. If you consider it a mistake, let me know.
Abbreviations, acronyms
Used to write 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 to distinguish.
Clickable URI
Automatic transfer to URI clickable form (including email)
další informace na www.dgx.cz a také ... more information on www.dgx.cz and ...
Distribution of very long words
Very interesting and important features Texy. Long words can affect the appearance of the page, so the browser should indicate where it may break. Texy these places looking for with regard to national practices, ie the word broken down by syllables:
nejneobhospodařovávatelnějšími nejneobhospoda ­ řovávatelnější ­ mi </p Note: limit 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
Example of a simple table, columns are 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 |
| Cecilie | Svobodova | 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 | Cecilie |
|---|---|---|
| Last Name | Christ | Svobodova |
| Age | 33 | 74 |
Columns
note the double | |
|-----------------------------
| Name || Age
|----------------------------
| Jesus | Christ | 33 | Name | Age | |
|---|---|---|
| Jesus | Christ | 33 |
Rows
Note the character ^ 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 the line is inserted at the end of line
- affecting the column is inserted at the beginning of the cell (left in the cell)
- and ultimately influencing the cell is inserted at the end of the cell (in the right cell)
Take a look at an example.
.(people)
| .{color: green} first col | second col .>| third col | .{font-style:italic}
| Adam | Eva .{color: blue}| Franta | Here is:
-
.(people)modified table -
.{color: green}modifier column -
.{font-style:italic}modifier line -
.{color: blue} .>modified cells
So the resulting table looks like this:
| first col | second col | third col |
| Adam | Eva | Franta |
Compatibility
Syntax Texy is not fully compatible with any other system. Some rules are the same, others again different. Texy the compatibility attempt, the more it is forced along with the benefits of other systems to distribute their illogicality.
I met with the view that Texy has similar syntax as Textile. I must warn - this similarity would cause confusion for you. It is only apparent - for example, both systems use write modifier parentheses (round, square and folded) and the characters <> for alignment (what else is used, right?). Their meaning is not in any system is inherently different.
Syntax is chosen so that the most intuitive and natural. Of course, someone else may seem incomprehensible.





