Problem with templates and Chinese Text

This template does not support Chinese text, and preview may result in selection errors

Hi!

I expect that setting the charset in the template will fix any problem in Chinese. If not, could you explain a little more about the problem?

How to set it up?

I work as a scriptwriter, but the programming language of this tool makes it difficult for me to understand how to use it.

Hi. Iā€™m also a scriptwriter.
I use Tinderbox for two specific aspects of screenwriting:

  1. Outlining the story. i.e. I break the story down into beats and acts. This doesnā€™t need any programming at all.
  2. Worldbuilding - which I define as ā€œcreating a bank of sentences to describe the important characters, settings and items in my story.ā€ I had to define worldbuilding very closely and specifically in terms of exactly what I wanted out of Tinderbox. With this super-specific, narrow definition, I was able to use Tinderbox effectively. This required some low-level programming. Step by step I was able to achieve what I wanted thanks to the TBX forum, which is a Godsend.

Tinderbox seems like a lot at first. But go slowly and ask a lot of questions and a year from now youā€™ll be surprised how much youā€™d have learned. Itā€™s changed the way I think about problems in general. I now spend a lot more time closely defining what the problem actually is, in writing, before I embark upon solving it.

I think the question is not really a matter of the programming language of Tinderbox, but rather the way that Web pages work.

Perhaps we can step back just a bit, so the rest of us can understand what youā€™re trying to do. A couple of questions:

  1. Big picture: what is your goal? Tell us a bit about your project.
  2. Perhaps you could give us a picture of what youā€™re seeing? A screenshot is sometimes worth a thousand words. Iā€™m afraid that I donā€™t read Chinese at all, though others here do; it might be necessary to point out the discrepancy to make up for our lack of knowledge.

Thanks! Iā€™m sure we can sort this out, and I think I know the problem. But letā€™s be sure!

1 Like

This is a randomly inputted project, there will be an error when selecting preview!
ę ·ęæ.tbx (188.3 KB)

In short, and not unkindly - garbage it, garbage out. UPPERCASE tags for HTML left in the 1990s. Tags are closed with a slash at the front, not the back. tags not being closed correctly ā€¦ and many errors, crashes thereafter.

A simpler way to sort your problem is to make a static HTML pageā€”with valid HTML markupā€”using the data you expect to see. Once that is correct, start replacing literal text with export code.

For now your doc is crashing too many times to figure the problem.

Tip: (not mean unkindly). Start with valid HTML code!

In your templates, youā€™re ending paragraphs with <p/>. This should be </p>. Sometimes you start a paragraph with '

; that should be ā€˜

ā€™. (This isnā€™t Tinderbox ā€” itā€™s HTML, the base language of all web pages)

One question that springs to mind is, why are you using export for this? Is the project to build a web site, or is that of secondary interest? I ask, in part, because I think there might be an issue with the export systemā€™s handling of Chinese and other East Asian languages. Iā€™m not sure of this, but itā€™s a possibility.

So, if using HTML is not of the immediate essence, we might bypass some short-term frustration while sorting this out. If it is the point, weā€™ll sort it anyway.

Thank you for your reply. I wonā€™t be out yet. Iā€™m planning to write using Tinderbox

Absolutely!

Iā€™m afraid I know too little of Chinese and of screenwriting, but Iā€™m sure together weā€™ll find a good way.

Can you take a screenshot to indicate which file location is incorrect?

There are some bad tags like <p/> here, and in the Element note that is a child of this note.

But, unless you need to make a web site, HTML export templates are perhaps not something you need to do immediately.

I used the project file template from your video tutorial to modify it!

Iā€™m sorry, in my admin ā€˜hatā€™, I split this to a new topic as there was no clear link to the thread in which it was (re-)started after a long gap. I thought the top of the new (i.e. this) thread would record from where it is split ā€¦ but it doesnā€™t.

Could you post a link in this thread to the post where you got hold of the demo file you based your example upon. That might us help get back to what the original was doing and whether it is actually the best starting example for your task.

What is a ā€˜templateā€™ in Tinderbox

I also sense some unintended confusion in our collective differing use of the ā€˜templateā€™ here. to Tinderbox users a template is only one thing: an export template. An export template is a special form of note: see Export templates are notes.

Files posted as examples are generally referred to as a ā€˜demoā€™ files or example files. But, from the flow if the text, I think you are referring to a demo file (from an old thread here) rather than specific template(s) in it. In other words referring to a complete TBX file as opposed to one or two template note in the TBX.

The demo file being referred to is from some years back and Tinderbox features have moved on a bit. For the story plotting task you describe, the need for a template seems unnecessary, but it may have been being used for internal preview in which case the demo file was likely written before recent improvements to internal ā€˜previewā€™.

In internal preview you use the export mechanism to show HTML+CSS styled pages in the app , i.e. no export occurs. Despite this lack of output to external files, you still use/configure export template notes just as if actually export.

Anyway, getting a copy of the original demo TBX you built from should help resolve the confusion. :slight_smile:

[Edit: Admin edit to fix URL]

1 Like

Yes, my main purpose is to preview and use it. This tutorial is very valuable for reference. Of course, I also use the Tinderbox tool to conceptualize the plot outline of the script. It mainly uses a scene node, which is shared with other combinations to form different storylines. This function is very important. Do you have any specific video tutorials that you can take a look at?

1 Like

Following that link, for me, doesnā€™t load to a page with a link. Aha, looks like the URL got cut short. I think it was meant to send me to :

Which has this TBX file.

Iā€™ll use my admin access to now fix the URL in your post. :slight_smile:

Will you develop nodes that can be used directly in the future to quickly replace proxies and templates? And thereā€™s no need to modify the program, after all, weā€™re not web developers, especially for users who donā€™t understand English

Iā€™m afraid I donā€™t understand. The document you point to is complex. It is not a ā€˜templateā€™, in terms of a ā€˜fill in the blanksā€™ document. Rather, it helps explain what is discussed in the video. The sort of demo you want is a lot of work to make, which is likely why there isnā€™t one (weā€™re all users volunteering our time/expertise hereā€”even ā€˜freeā€™ time is an expense!).

I do understand about language barriers and am not trying to be insensitive about that. Unfortunately, our starting document here is very complex so will take a while just to check against your demo. But weā€™ll try.

Iā€™m now out for the rest of the day (here in UK), perhaps now weā€™ve identified the source demo and demo file, others can help with a solution for @wwchao.