Asimov Isaac
2017-10-07 08:53:30 UTC
Dear all,
If I want to cite some texts in one tiddler from another, what should I do?
Here is an example. If I want to translate some English to French, and the
tiddler may look like this:
(Paragraph 1) Some English sentences...
(Paragraph 2) The French translations of Para 1 ...
(Paragraph 3) Some other English sentences ...
(Paragraph 4) The French translations of Para 3 ...
...
...
And now I want to display all the French translations (without the English
parts) in a new tiddler, which is the para 2, para 4 and so on in the
example above. Like this:
Some other words ...
The French translations of Para 1 (above)...
I have tried some methods, but they all do not work well:
1. Transclusion. But its capability is limited:
- Transclusion can only transclude the whole tiddler.
2. Macros (with importvariables). This also has some disadvantages:
- You must define them all at the start of the tiddler.
- For each paragraph you need to give it a new macro name.
3. HTML syntax.
- I can use <div> or <p> to customise the paragraph, but I do not
know how to transclude them in another tiddler.
Here is an extended requirement:
- Since the French texts are structurely-similar in the example above,
I am wondering whether I could just use one identifier and list them in
the new tiddler in order of the sequence in the original tiddler.
If I want to cite some texts in one tiddler from another, what should I do?
Here is an example. If I want to translate some English to French, and the
tiddler may look like this:
(Paragraph 1) Some English sentences...
(Paragraph 2) The French translations of Para 1 ...
(Paragraph 3) Some other English sentences ...
(Paragraph 4) The French translations of Para 3 ...
...
...
And now I want to display all the French translations (without the English
parts) in a new tiddler, which is the para 2, para 4 and so on in the
example above. Like this:
Some other words ...
The French translations of Para 1 (above)...
The French translations of Para 3 (above)...
...I have tried some methods, but they all do not work well:
1. Transclusion. But its capability is limited:
- Transclusion can only transclude the whole tiddler.
2. Macros (with importvariables). This also has some disadvantages:
- You must define them all at the start of the tiddler.
- For each paragraph you need to give it a new macro name.
3. HTML syntax.
- I can use <div> or <p> to customise the paragraph, but I do not
know how to transclude them in another tiddler.
Here is an extended requirement:
- Since the French texts are structurely-similar in the example above,
I am wondering whether I could just use one identifier and list them in
the new tiddler in order of the sequence in the original tiddler.
--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d005b944-bd43-4f75-9f28-6fbe2a6615a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d005b944-bd43-4f75-9f28-6fbe2a6615a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.