Problem with templates and Chinese Text

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


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


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.