Support Basic Text Tables #144

Closed
odrobnik opened this Issue Mar 13, 2012 · 28 comments

Comments

Projects
None yet
10 participants
Collaborator

odrobnik commented Mar 13, 2012

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 commented Dec 6, 2012

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 commented Dec 6, 2012

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 commented Dec 6, 2012

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 commented Dec 6, 2012

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

Collaborator

odrobnik commented Dec 11, 2012

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.

Collaborator

odrobnik commented Dec 12, 2012

@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 commented Dec 12, 2012

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

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.

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

Collaborator

odrobnik commented May 1, 2013

Nope. Still no funding has materialized so far. Maybe I should make a commercial component just for tables

Sent from my iPhone

On May 1, 2013, at 12:51 AM, thephotographer notifications@github.com wrote:

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


Reply to this email directly or view it on GitHub.

How much funding would you require?

Collaborator

odrobnik commented May 1, 2013

Several weeks of research and development.

Sent from my iPhone

On May 1, 2013, at 9:10 AM, thephotographer notifications@github.com wrote:

How much funding would you require?


Reply to this email directly or view it on GitHub.

I love to donate

On May 1, 2013, at 11:16 AM, Oliver Drobnik notifications@github.com wrote:

Several weeks of research and development.

Sent from my iPhone

On May 1, 2013, at 9:10 AM, thephotographer notifications@github.com wrote:

How much funding would you require?


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

Between us all here we can raise the funds required. Lets go!

On 01/05/2013, at 6:26 PM, yaron walter notifications@github.com wrote:

I love to donate

On May 1, 2013, at 11:16 AM, Oliver Drobnik notifications@github.com
wrote:

Several weeks of research and development.

Sent from my iPhone

On May 1, 2013, at 9:10 AM, thephotographer notifications@github.com
wrote:

How much funding would you require?


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on
GitHubhttps://github.com/Cocoanetics/DTCoreText/issues/144#issuecomment-17272859
.

Collaborator

odrobnik commented May 1, 2013

I have two other sponsored projects before. I'll get back to you on this once those are done.

Sent from my iPhone

On May 1, 2013, at 10:28 AM, thephotographer notifications@github.com wrote:

Between us all here we can raise the funds required. Lets go!

On 01/05/2013, at 6:26 PM, yaron walter notifications@github.com wrote:

I love to donate

On May 1, 2013, at 11:16 AM, Oliver Drobnik notifications@github.com
wrote:

Several weeks of research and development.

Sent from my iPhone

On May 1, 2013, at 9:10 AM, thephotographer notifications@github.com
wrote:

How much funding would you require?


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on
GitHubhttps://github.com/Cocoanetics/DTCoreText/issues/144#issuecomment-17272859
.

Reply to this email directly or view it on GitHub.

Do you have any idea on a timeline?

akac commented May 2, 2013

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

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.

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.

Collaborator

odrobnik commented May 11, 2013

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

Is the leatest version DTCoreText support table border style !

Collaborator

odrobnik commented Feb 26, 2014

No.

On 26 Feb 2014, at 08:54, menglexiang notifications@github.com wrote:

Is the leatest version DTCoreText support table border style !


Reply to this email directly or view it on GitHub.

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

Collaborator

odrobnik commented Feb 26, 2014

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.

I want to achieve the following effects. but there are some problem-------
I change the css of

to "display: block;",and foreach line, append a
line like a
,but I can't change the height = (asc+desc+leading).
what should I do, could you give me more advice,thanks.
[image: 内嵌图片 1]
[image: 内嵌图片 2]

2014-02-26 18:56 GMT+08:00 Oliver Drobnik notifications@github.com:

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.


Reply to this email directly or view it on GitHubhttps://github.com/Cocoanetics/DTCoreText/issues/144#issuecomment-36113337
.

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

Contributor

liuslevis commented Mar 22, 2016

An idea came to me, use native UITextView to render attributedString from table's HTML. Then add the textView as subview.

Instead of using UIWebView to render table, which takes about 0.5 sec, use a UITextView to render table's HTML is much more faster, which takes about 0.1 sec.

Collaborator

odrobnik commented Feb 23, 2017

Since there has not being any activity on this issue in several months we are closing it for now. If you are interested in providing a fix or solution you are encouraged to provide a pull request.

Please read the release notes for the latest 1.6.20 release. If you still require assistance, you can hire me to work on your issues for a reasonable fee.

odrobnik closed this Feb 23, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment