Skip to content

Commit

Permalink
* misc/i18n/*: spell checking.
Browse files Browse the repository at this point in the history
git-svn-id: https://tdiary.svn.sourceforge.net/svnroot/tdiary/trunk/core@843 7f22e88f-374d-0410-998f-c91420d97ba2
  • Loading branch information
tadatadashi committed Nov 5, 2002
1 parent 775348a commit 99767fb
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 138 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
2002.11.05 TADA Tadashi <sho@spc.gr.jp>
* misc/i18n/*: spell checking.

2002.11.02 TADA Tadashi <sho@spc.gr.jp>
* doc/HOWTO-make-theme.html: add about font-size and div.sidebar, themebench2.

Expand Down
108 changes: 53 additions & 55 deletions misc/i18n/HOWTO-write-tDiary-en.rd
Expand Up @@ -9,46 +9,44 @@


== Format of the diary
Basically, you write your diary in HTML. But, the format of diary has the extra rules in order to write diary without knowledge of HTML. In this format, a linefeed and a character at the begninning of the line have special meanings. These rules are for the purpose of setting sub-title and paragraph easily.
Basically, you write your diary in HTML. But, the format of diary has the extra rules in order to write diary without knowledge of HTML. In this format, a linefeed and a character at the beginning of the line have special meanings. These rules are for the purpose of setting sub-title and paragraph easily.

# 「↓」を何で置換しますか?
The rules are explained below. To distinguish a linefeed in appearance(HTML) from an actual linefeed(format), u$vstands for an actual linefeed in this manual.

The rules are explained below. To distinguish a linefeed in appearance(HTML) from an actual linefeed(format), 「↓」stands for an actual linefeed in this manual.


sub-title(1)↓
sub-title(1)$
Like the above, a line of the beginning becomes a sub-title.
This line is displayed as bold characters with the tDiary's standard style sheet.
Lines from the sub-title to the next space line are called section,
and a section anchor is added in front of the sub-title.
and a section anchor is added in front of the sub-title. $
Lines after the sub-title like this line and the line just above are
recongnized as normal lines. If the paragraph begins with a sub-title,
the section anchor is not attached in front of the normal lines.
recognized as normal lines. If the paragraph begins with a sub-title,
the section anchor is not attached in front of the normal lines.$
$
If space line exists, the line means the separation of the sections.
If space exists in front of the line like this line,
the section doesn't have a sub-title. Only the first paragraph
has a section anchor. In this case, the line is not shown as bold characters.
has a section anchor. In this case, the line is not shown as bold characters.$
If the section doesn't begin with a sub-title, the second or
later paragraph doesn't have an anchor.
<pre>
If the paragraph begins with a line whose first character is "<",
the whole section is not formated.
later paragraph doesn't have an anchor.$
$
<pre>$
If the paragraph begins with a line whose first character is "<", $
the whole section is not formatted. $
The lines from the beginning of the section to the next space line,
in other words, to the next section, is shown as it is.
in other words, to the next section, is shown as it is. $
This feature is convenient if you want to use
HTML tags, for example, list or table.
This section doesn't have a section anchor.
</pre>
<<a href="hogehoge">sub-title(2)</a>
HTML tags, for example, list or table. $
This section doesn't have a section anchor. $
</pre>$
$
<<a href="foobar">sub-title(2)</a>$
Inevitably, you can't add a sub-title which begins with a HTML tag
to a section. But if a line begins with "<<" like the above line,
the line is also recognized as a sub-title.
the line is also recognized as a sub-title.$
$

((* This example is formated like the below.*))
((* This example is formatted like the below.*))

<<< result

Expand All @@ -72,45 +70,45 @@ created by tDiary.). You take advantage of this.
sub-title
Like this, you write a list which has two items. <ul><li>item1</li>
<li>item2</li></ul><p> Here is in the same section
<li>item2</li></ul><p> Here is in the same section$
It is the point not to put a linefeed. This way is usable if
a paragraph enclosed by a tag is not composed of plural lines.
But, this is a little difficlut to read.
But, this is a little difficult to read.
In the above way, you take advantage of the fact that a paragraph is
enclosed by <p> in tDiary. On the contrary, another way is to take
advantage of the fact that <p> tag is not inserted to a section if
the section has a line which begin with a tag. In the next example,
tDiary insert no tag to a section becase the section has a line
which begins with "<". And, normal lines are enclosed by <p>-</p>, excpet a list.
tDiary insert no tag to a section because the section has a line
which begins with "<". And, normal lines are enclosed by <p>-</p>, except a list.
sub title
<p>Like this, you write a list which has two items.</p>
<ul>
<li>item1</li>
<li>item2</li>
</ul>
<p> Here is in the same section.</p>
sub title$
<p>Like this, you write a list which has two items.</p>$
<ul>$
<li>item1</li>$
<li>item2</li>$
</ul>$
<p> Here is in the same section.</p>$
This way is suitable if a paragraph enclosed by tags is plural. For example,
you insert source code with <pre> tag.
Of course, if you don't mind the fact that the sections are splitted,
you are not bothered with fomating.
Of course, if you don't mind the fact that the sections are split,
you are not bothered with formatting.
In this case, it may be better to write like the next example.

sub title
Like this, you write a list which has two items.
<ul>
<li>item1</li>
<li>item2</li>
</ul>
Here is in the same section.
sub title$
Like this, you write a list which has two items.$
$
<ul>$
<li>item1</li>$
<li>item2</li>$
</ul>$
$
Here is in the same section.$

The last line, "Here ...", has a section anchor, but this is not a big problem.

Expand All @@ -121,17 +119,17 @@ But, you can insert an anchor to a section in appearance if you utilize the fact
that we can make a section without a sub-title. Please read the next example.
sub-title(2)
sub-title(2)$
$
Like this, you put a space line under the sub-title and make a section
to begin with space. This makes two sections. The first section has
only the sub-title. The second section has only the paragraph.
If you insert a space line to every paragraph, every paragraph has an anchor.
sub-title(2)
Please be careful of that a line which doesn't begin with space becomes a sub-title.
only the sub-title. The second section has only the paragraph. $
$
If you insert a space line to every paragraph, every paragraph has an anchor.$
$
sub-title(2)$
$
Please be careful of that a line which doesn't begin with space becomes a sub-title.$


This example is displayed like this. It is the point that a line begins with space.
Expand Down

0 comments on commit 99767fb

Please sign in to comment.