Re: TabStops and Tab Spacings

2019-03-13 Thread Håkan Liljegren via use-livecode
Tab-size is a CSS-thing and not a Livecode thing... On 7 Mar 2019, 01:15 +0100, Roger Guay via use-livecode , wrote: > Thank you, Håkan. I am working with rtfText and 4 or 5 tab-sizes, but this is > very interesting and I will see what I can use. Is the Tab-size attribute an > LC thing? If so, I

Re: TabStops and Tab Spacings

2019-03-06 Thread Roger Guay via use-livecode
Thank you, Håkan. I am working with rtfText and 4 or 5 tab-sizes, but this is very interesting and I will see what I can use. Is the Tab-size attribute an LC thing? If so, I don’t find anything about tab size in the dictionary. Roger > On Mar 6, 2019, at 1:16 PM, Håkan Liljegren via

Re: TabStops and Tab Spacings

2019-03-06 Thread Håkan Liljegren via use-livecode
There is a tab-size attribute that you can use but it can’t contain more than one number and it only handles ”number of spaces” for a tab like tab-size: 6 Will give you 6-spaced tab. To get the layout in HTML I instead suggest another approach. Replace each tab with an HTML-element to convert

Re: TabStops and Tab Spacings

2019-03-05 Thread hh via use-livecode
> Roger G. wrote: > Is there any way to export myFld to URL and retain the Tab spacings > 15,250,320 ? > ... > I’m working with rtfText instead of HTMLText. (Again, not sure if that makes a > difference or even what the trades are of each). RtfText is, without a large JavaScript library,

Re: TabStops and Tab Spacings

2019-03-04 Thread Roger Guay via use-livecode
Thank you, Herman. I’m going to have to study this to see if I can use it. I am not converting a "simple table field” but rather a simple field with tabStops (not sure if that makes a difference?). Also, I’m working with rtfText instead of HTMLText. (Again, not sure if that makes a difference

Re: TabStops and Tab Spacings

2019-03-04 Thread Roger Guay via use-livecode
This is what I am doing, Torre, but it’s not working! What is preserved is the number of tabs inserted but not the tab spacing. In the output document, I have to manually adjust the tabs in the tab bar of TextEdit. Thanks, Roger > On Mar 4, 2019, at 3:59 PM, Tore Nilsen via use-livecode >

Re: TabStops and Tab Spacings

2019-03-04 Thread hh via use-livecode
Last trial. Typos removed and tested to work. Sorry for the previous faulty version, it's too late here. -- Converts a simple table field with tabstops to a html -- [-hh fecit, Mar 2019] on mouseUp put the htmltext of fld 1 into ht put the effective textSize of fld 1 into fs put the

Re: TabStops and Tab Spacings

2019-03-04 Thread hh via use-livecode
To avoid misunderstandings here again the (correctly displayed) code: -- Converts a simple table field with tabstops to a html -- [-hh fecit, Mar 2019] on mouseUp put the htmltext of fld 1 into ht put the effective textSize of fld 1 into fs put the tabstops of fld 1 into tStops put the

Re: TabStops and Tab Spacings

2019-03-04 Thread hh via use-livecode
The itemdel (that was translated from html in my last post to a tab) is the htmlCode of tab: numToChar(38)&"#9;". ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription

Re: TabStops and Tab Spacings

2019-03-04 Thread hh via use-livecode
Using the htmltext or the rtfText will not work: They contain the tabs but NOT the tabspacing. You could try the following, it works for me. Make a browser widget with the width of your table field = fld 1. -- Converts a simple table field with tabstops to a html -- [-hh fect Mar 2019] on

Re: TabStops and Tab Spacings

2019-03-04 Thread Tore Nilsen via use-livecode
If I understand your question correctly, you would like to export the styled text to an external document. If this is the case then you could use this: Put the rtfText of field myField into url myURL — where the file extension should be .rtf. You will then have styled text document where, to

Re: TabStops and Tab Spacings

2019-03-04 Thread Stephen Barncard via use-livecode
Hi, In the past I've set up a special format for field listing with column names on the first line and tab stops (as comma separated integers( on the very last line) human readable sqb -- Stephen Barncard - Sebastopol Ca. USA - mixstream.org On Mon, Mar 4, 2019 at 12:25 PM Roger Guay via

TabStops and Tab Spacings

2019-03-04 Thread Roger Guay via use-livecode
This is driving me crazy: I have a styled text field in the IDE called myFld for which I set the TabStops to 15,250,320 Is there any way to export myFld to URL and retain the Tab spacings 15,250,320 ? Thanks for your help, Roger ___ use-livecode