*Magnify*
SPONSORED LINKS
Printed from https://writing.com/main/forums/message_id/2145909
Rated: ASR · Message Forum · Writing.Com · #102362
Drop your new ideas into the Writing.Com Suggestion Box!
<< Previous  •  Message List  •  Next >>
Reply  •  Post New
Oct 4, 2010 at 3:07pm
#2145909
TABLES
by A Non-Existent User
It's frustrating how so many things necessarily move to the next line.

E.g. I can't put a list of names on the left side and an image to their right - the image insists on being on its own line.


How about adding some WritingML to implement very basic tabling.

Nothing fancy. HTML tables are a nightmare, and seem to get more so with each new version.


I suggest only doing single-row tables. If users want multiple rows, they can chain them together. This simplifies parsing significantly.

Only two new WritingML commands (pairs) would be required:
          {table}...{/table}
          {cell:width }...{/cell}           (No space after 'width', of course, but I have to put the space here so that the parser doesn't get confused...)

          width would be either a number, for pixels, or a percentage, between quotes, for a percentage width. (Just like in HTML).

Parsing the WritingML would be easy:
*Bullet* Replace {table} with <TABLE><TR>
*Bullet* Replace {/table} with </TR></TABLE>
*Bullet* Replace {cell:width } with <TD WIDTH=width>
*Bullet* Replace {/cell} with </TD>


Et voila.


LP
MESSAGE THREAD
*Star*
TABLES · 10-04-10 3:07pm
by A Non-Existent User
Re: TABLES · 10-04-10 3:30pm
by The ScaryMaster
Re: Re: TABLES · 10-04-10 4:24pm
by Dr. Jeffyll, or Mr. Hyde?
Re: Re: Re: TABLES · 10-04-10 4:38pm
by The ScaryMaster
Re: Re: Re: Re: TABLES · 10-04-10 4:55pm
by A Non-Existent User
Re: Re: Re: Re: Re: TABLES · 10-04-10 5:06pm
by The ScaryMaster
Re: Re: Re: Re: Re: Re: TABLES · 10-05-10 12:29am
by A Non-Existent User
Re: Re: Re: Re: Re: Re: Re: TABLES · 10-05-10 1:03am
by The ScaryMaster
Re: Re: Re: Re: Re: Re: Re: Re: TABLES · 10-05-10 1:17am
by A Non-Existent User
Re: Re: Re: Re: Re: Re: Re: Re: Re: TABLES · 10-05-10 1:27am
by The ScaryMaster
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: TABLES · 10-05-10 2:14am
by A Non-Existent User
Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: TABLES · 10-05-10 10:09am
by A Non-Existent User
Re: Re: TABLES · 10-04-10 4:25pm
by A Non-Existent User
Re: Re: Re: TABLES · 10-04-10 4:36pm
by The ScaryMaster

The following section applies to this forum item as a whole, not this individual post.
Any feedback sent through it will go to the forum's owner, The StoryWitchress.
Printed from https://writing.com/main/forums/message_id/2145909