Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Support Basic Text Tables #144

Open
Cocoanetics opened this Issue · 26 comments

9 participants

@Cocoanetics
Owner

It should be doable to support simple text tables similar as text boxes are now supported.

Contact me if you need that and want to sponsor implementation of this feature.

@Anupdas

Hi Mr. Drobnik, I'm using DTCoreText in my project and it requires support of text tables.

How can I sponsor for the support?

@JanX2

Just to throw this in: I have been working on NSAttributedString-based tables over the past few month and would be glad to help in any way I can to make this a reality.

See:
https://github.com/JanX2/JXTextTableGenerator

I can already say that this is not going to be easy on iOS, because it all the NSTextTable… support is missing and would have to be written from scratch. This includes table layout, which gets particularly difficult with nested tables and row and column spanning.

How does WebKit do this on iOS?

@Anupdas

Thanks for your suggestion Mr. Jan.

But I'm unaware how the "HTML is rendered to NSAttributedString". I would like to see library supporting "tables". My requirement is to have a simple text table.

@JanX2

Exactly. I was just mentioning that I will help if possible and that its not going to be easy!

@Cocoanetics
Owner

I would like to do a box-model implementation which would also cover this. basically it would divide the page according to the boxes (body, div, table) found in the HTML.

@Cocoanetics
Owner

@Anupdas what this needs to be actually worthwhile is to be used in an actual project and coded to spec. It is probably a man month or two to get done. But somebody would have to fund this person working on that for an entire month. Would you be willing to foot the bill for that? Or where you hoping for something cheaper?

@JanX2

I concur that this is about a month or two of work.

@lnafziger

Is it possible, as it stands now, to have multiple text boxes on the same line? You imply above that this is how you would implement tables. For instance, I need to have two columns of text, one of which is left justified and one of which is right justified, both on the same line. (Think of it like a checklist with a followed by a at the end of the same line.)

Tables would be a huge help (for other reasons as well), unfortunately I am not able to sponsor a months work in order to have it implemented for my project so I am looking for alternative ways that I can accomplish this.

Thank you.

@thephotographer

Has there been any further development or news on tables? I have a use for it within one of my applications.

@Cocoanetics
Owner
@thephotographer

How much funding would you require?

@Cocoanetics
Owner
@walteryaron
@thephotographer
@Cocoanetics
Owner
@thephotographer

Do you have any idea on a timeline?

@akac

We would be interested in being part of a group that sponsors table support.

@lnafziger

If you are going to work on this feature, it would be very useful if you would add full html table support. Rather than simply adding "text tables", being able to add any supported html into the table should not be much harder to implement and would add significant functionality.

@lnafziger

One other thought: As part of implementing tables, would implementing the "float" selector (especially for div) be much additional work? I'm thinking that it might actually make building the tables easier once you have that functionality and it will help out in lots of other situations as well.

@Cocoanetics
Owner

parsing table tags, floating text attachments and floating divs are entirely different things.

@menglexiang

Is the leatest version DTCoreText support table border style !

@Cocoanetics
Owner
@menglexiang

Can I use div or any other tags to achieve the similar effect?

@Cocoanetics
Owner

if you set a background color then this cause the blog to be embedded in a text block. There is a delegate method where you can draw a custom border around such blocks. See the demo, there rounded corner boxes are drawn like this.

@menglexiang
@wjiuxing

Could I display table with the latest DTCoreText? When will it be available please?
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.