| <<<Back 1 day (to 2016/04/13) | 20160414 |
flaus | any muJS devs around? | 01:28.17 |
Maori | Hi,there.I'm trying to get the font information of the special character by using the Mupdf.Using the fz_text_char->style->font->name.But the result seemed to be wrong.Can someone tell me how to get it? | 08:18.42 |
kens | YNone of the MuPDF developers are currently available. If you wait an hour or so someone will probably be able to help. In the meantime it would probably be useful if you could be more specific; what do you mean by 'the font information' ? What do you mena by 'the special char' ? Can you put an example file somewhere where it can be examined. How are you attempting to use fz_text_char->style->font_name ? | 08:20.41 |
Maori | well,I've done some work about it. What I want to make is to add some keywords which appears in the pdf ,the char show in different color like the hyperlinks.Such as the keywords is "Qt", when I open a pdf, the "Qt" in the page where it shows in red color. | 08:35.20 |
| fz_text_char *ch = d->text_span->text; fz_text_char *end = d->text_span->text + d->text_span->len; if(int index = text().indexOf(string) != -1){ for(int i = 0; i < index && ch < end;i++){ ch++; } QStringList name = QString(ch->style->font->name).split(","); font.setFamily(name.first()); if(name.count() == 1){ font.setBold(false); }else{ | 08:36.07 |
| d | 08:36.27 |
| d is a private class member | 08:36.40 |
kens | pastebin is probably a better bet than putting code here..... | 08:36.53 |
| But in any event you'll have to wait for someone who knows more than me | 08:37.22 |
Maori | Most time i joined ,only you in here | 08:38.49 |
| bin? | 08:39.17 |
kens | No there are several people online, but the main MuPDF developers work later than me, so they start later too. | 08:39.19 |
| Someone should be along in an hour or less who can probably help you | 08:39.42 |
Maori | ok. | 08:39.54 |
| how can i to upload a picture ? | 08:41.16 |
kens | Put it on dropbox or something similar | 08:41.33 |
| And paste a URL here | 08:41.43 |
Maori | ok | 08:41.57 |
kens | But an example PDF file is more likely to be useful | 08:41.57 |
Maori | http://pan.baidu.com/s/1coLoYU | 08:46.06 |
| now what i want to do is not change the pdf file, bu to change some character font color in the show time | 08:47.15 |
| Hope you get it | 08:47.38 |
Robin_Watts_ | tor8: Not for the first time, I find myself regretting our naming conventions. | 10:28.47 |
| Bah. I had the window scrolled up, so missed all Maori's questions. | 10:29.59 |
| tor8: I want to split fz_image out into different derived classes. | 10:30.44 |
| In our current naming scheme this means I end up with fz_standard_image, fz_decoded_image, etc, when I'd really prefer fz_image_standard, fz_image_decoded, etc. | 10:34.13 |
tor8 | Robin_Watts_: fz_image_decoded sounds positively french ;) | 10:40.08 |
Robin_Watts_ | It's my love of heirarchy at play :) | 10:40.28 |
tor8 | I hear you; having such a hierarchy would make naming some things a lot easier | 10:41.06 |
| but I fear it's a bit too late to change it all now | 10:41.27 |
Robin_Watts_ | That's not the MuPDF way :) | 10:41.39 |
| Some sanitize fixes on robin/master | 10:42.00 |
tor8 | It's your calming influence... | 10:42.03 |
Robin_Watts_ | I've been called many things, but never "calming" :) | 10:42.23 |
tor8 | :) | 10:44.20 |
| Robin_Watts_: sanitize fixes LGTM; but what did you change with the svg commit? | 10:45.12 |
Robin_Watts_ | fz_path *path = fz_new_path(); not at the start of a block. | 10:45.34 |
tor8 | ah. | 10:45.42 |
| that LGTM as well then | 10:46.24 |
| Robin_Watts_: FB2 support and a handful other commits on tor/master. | 11:36.47 |
sebras | Robin_Watts_: if you have time, do you mind trying to build win32 using the updated openjpeg over at sebras/master? | 11:36.59 |
| Robin_Watts_: I think I have updated the .vcproj-files correctly but I can't build test it. | 11:37.11 |
| so far I have tested with a single PDF containing a j2k-file. | 11:37.36 |
| tor8: that was fast! | 11:37.51 |
tor8 | sebras: most of the time was spent writing the default css stylesheet | 11:38.51 |
Robin_Watts_ | sebras: Sure. Later today OK? | 11:40.51 |
| sebras: Does it cluster test OK ? | 11:41.01 |
| I'm guessing you've not done that yet, as the cluster shows your last run as being in Feb :) | 11:41.54 |
sebras | Robin_Watts_: exactly. and that might not be february of this year. | 11:43.46 |
| Robin_Watts_: I'm still abit confused about running that. though I have a clusterpush.pl in ~/bin | 11:44.08 |
| Robin_Watts_: I think you told me about how to use it two years ago or so, but I need a refresh of how to submit my own things. | 11:44.36 |
| Robin_Watts_: but yeah, later today is better for me too. | 11:44.48 |
Robin_Watts_ | sebras: Try doing: git cluster ? | 11:47.00 |
| or just run clusterpush.pl | 11:48.30 |
| tor8: match_att_has_condition(fz_xml | 11:50.44 |
| You have n = strlen(val), and then ss[n] == ' '. | 11:50.57 |
| where ss = strstr(s, val) | 11:51.23 |
| ss[n] is always the 0 terminator of the string, or later, I think. | 11:51.49 |
| so something is wrong there. | 11:51.55 |
| otherwise those commits look plausible to me. | 11:52.34 |
tor8 | Robin_Watts_: hm, yeah, that code looks fishy. not sure what I was trying to do there... | 12:01.40 |
| ss[n] will be the 0 terminator or the character after the matching substring | 12:09.29 |
Robin_Watts_ | tor8: No. | 12:11.45 |
| val[n] will be the 0 terminator. | 12:12.00 |
| ss >= val, therefore ss[n] will be 0 terminator or buffer overflow. | 12:12.33 |
tor8 | if ss is true, the 'val' string will be found in its entirety | 12:28.10 |
| thus ss[n] will be either 0 (the val string was at the end of s), or the character after the val substring in s | 12:29.12 |
| n = strlen(needle); ss = strstr(haystack, needle); | 12:30.35 |
Robin_Watts_ | D'Oh. I follow now. | 12:36.53 |
| Yes, all lgtm then. | 12:37.14 |
mvrhel_laptop | bbiab | 16:44.32 |
| Forward 1 day (to 2016/04/15)>>> | |