This version is out of date, covering development as far as v4.2.5. It is maintained here only for inbound reference links from elsewhere. Jump to the current version of aTbRef. |
A Tinderbox Reference File : Attributes : System Attribute List : HTMLFileNameMaxLength |
HTMLFileNameMaxLength |
Attribute Data Type: | number |
Attribute Default Value: | 8 |
Atrribute Group: | HTML |
Attribute Inherited from Preferences? | No |
Attribute Read-Only? | No |
Specifies the maximum number of characters allowed in exported filenames (default is 8). You might want to make this longer to decrease the chance of name clashes amidst exported files.
The maximum value supported is 31 [sic], where this is the total of HTMLFileNameMaxLength and the length of HTMLExportExtension. As the latter defaults to '.html' - 5 characters, the maximum possible length, short of using a shorter extension is 26 characters.
It appears Tinderbox (as a v4.0.0) is still using old pre-OS10 filename limits. This should allow 32 characters, but using 27+'.html' results in pages with a 'h#0' extension that are effectively unusable.
Setting the value to 28 or more results in a silent failure with no export occurring and no warning to the use.
Given the later it's not clear whether the 'legacy' limit of 31 is deliberate or whether something else in the app's export system can't cope with long filenames.
As from v3.0.5, the default value - for new TBX files - is 24. Note that the default for HTMLFilenameLowerCase also now changes to false. However, It does appear though that if you try a ';' reset of the value, the default flops back to the old default of 8.
Up: System Attribute List | |
Previous: HTMLFileNameLowerCase | Next: HTMLFirstParagraphEnd |
Licensed under Creative Commons Attribution-Noncommercial-Share Alike 3.0 License
[See aTbRef CC licence Attribution/Waiver info info]