IRC Logs

Log of #ghostscript at irc.freenode.net.

Search:
 <<<Back 1 day (to 2015/11/24)20151125 
Nathaniel7687 Hi04:57.54 
ghostbot Welcome to #ghostscript, the channel for Ghostscript and MuPDF. If you have a question, please ask it, don't ask to ask it. Do be prepared to wait for a reply as devs will check the logs and reply when they come on line.04:57.54 
Nathaniel7687 What's this level value, what's level role? in OutlineItem04:59.37 
Robin_Watts Nathaniel7687: Outline entries are at different depths.10:34.32 
Nathaniel7687 hi10:34.50 
ghostbot Welcome to #ghostscript, the channel for Ghostscript and MuPDF. If you have a question, please ask it, don't ask to ask it. Do be prepared to wait for a reply as devs will check the logs and reply when they come on line.10:34.50 
Nathaniel7687 thanks10:34.54 
Robin_Watts Like here: http://pastebin.com/Y1UuCjMv10:35.38 
  Chapter 1,2,3 will be level 0 (or 1, I forget)10:35.52 
  Then Chapter 1,Section 1 will be level 1 (or 2)10:36.01 
  etc.10:36.03 
Nathaniel7687 and how to change default fit, fit height to fit width?10:36.22 
Robin_Watts Of outlines? or pages?10:38.00 
  At what level in the code?10:38.27 
Nathaniel7687 no, pdf viewer10:41.37 
  I mean MuPDFActivity in view10:42.05 
  *pdf view in MuPDFActivity10:42.21 
Robin_Watts Nathaniel7687: Changing the default zoom means changing the way the adapter etc works.10:43.04 
  That's more work than you want to do, trust me.10:43.19 
Nathaniel7687 MuPDFAdapter.java?10:44.11 
  when My app reopen, pdf view is appear firstpage..., I don't know what i modify11:26.56 
  could you know me where is specified code about current page save..11:28.12 
  my code about MuPDF... http://codeshare.io/MaoCs11:32.57 
  I'm so sorry12:02.10 
  answer one's own question..12:02.13 
  onDestory() is not called because I write code turn off process in onBackPressed().12:03.57 
mvrhel_laptop tor8: are you around?15:49.55 
tor8 mvrhel_laptop: yes.15:57.27 
mvrhel_laptop oh hi tor8: so I was working on adding in the fonts for the create command in mutool. I had hoped it was going to be as easy as the images, but after reading I see that I need to create the FontDescriptor and the Widths. Is there an existing way to do this?15:59.52 
Robin_Watts mvrhel_laptop: I believe this work is going to require fz_font/fz_fontdesc to be reworked.16:00.34 
mvrhel_laptop I see in the pdf-device that the code is restricted to the base 14 fonts16:00.37 
Robin_Watts The pdf-device is restricted to the base 14 fonts exactly because of this issue.16:01.07 
tor8 mvrhel_laptop: nope, no code exists to create the font descriptor and widths.16:01.11 
mvrhel_laptop ok16:01.16 
tor8 and tounicode table.16:01.18 
  for starters, I'd just create a WinAnsi encoded font16:01.37 
  and then we can talk more generic approaches during/after the meeting16:01.53 
  or if we can do UTF-8 that might be a better encoding to aim for, but then you need to create CID fonts16:02.34 
  a "simple" 8-bit font is easier to create in PDF16:02.47 
mvrhel_laptop ok. lets plan to talk more about this during the meeting. I will do a bit of reading to get up to speed and I will work on the code to ensure duplicate resources are reused and not put in multiple times.16:05.43 
chrisl My Windows 8 VM just through up the Windows Actvation demand - but I went through activation when I first installed it. I think I'll leave tracking down the install media until after the staff meeting.....16:33.43 
mvrhel_laptop have to head out for bit. 16:43.09 
printline I think it would be better if pgup/pgdown would scoll by the height of the window instead of by page16:45.31 
Robin_Watts printline: I think it would be better if you explained what piece of software you are talking about.16:46.31 
printline mupdf-x1116:47.01 
  I've added two new keybindings for that: http://pastebin.com/raw.php?i=J9jQhHBL16:47.23 
  and made pgup/dn emulate these instead of lower-case j,k16:47.39 
Robin_Watts printline: Imagine the use case where I open a file, then zoom in so I can see the marked content of the page, and none of the borders.16:50.59 
  then page up/down flips me between pages without ruining that.16:51.14 
  your patch would ruin that.16:51.25 
printline Robin_Watts: it scrolls to the text selection with pgup/pgdn?16:53.35 
Robin_Watts No. I believe it scrolls to the same place in the previous/next page.16:54.05 
printline ah, hm, it doesn't appear to do that in mupdf-x1116:55.07 
  , and . set a PAN_TO_(TOP|BOTTOM) flag16:55.27 
  though, this should perhaps rather be bound to , and .17:03.09 
  and page-perhaps to S-, and S-., though that might be problematic on different keyboard layouts? not sure17:03.47 
ferter_terter hi guys17:17.14 
  i have a question about polygon annotation. in it's dictionary it contains an array of points. but they could be in a random order. so i'm wondering, how do i understand which of them create lines?17:19.28 
kens Hmm does it say the order is random ?17:21.27 
  Looks to me like entries 1 & 2 are th inital point, 3 &4 the second point and so on to N,N+1 which is the last point. Point 1 is connected to 2, 2 to 3 and so on to N, N is connected to point 117:23.36 
ferter_terter let me show u, what i've got17:24.28 
kens Don't write me any code, I'm just looking at the PDF Reference17:25.00 
  I see nothign there which says the entries in the Vertex array are random17:25.20 
  Err Vertices array, not Vertex17:25.40 
Robin_Watts ferter_terter: For sanity, you'd imagine that they should run either clockwise or anticlockwise around the shape, but then this is PDF, so sanity may not apply.17:26.32 
kens So [0 0 1 0 1 1 0 1] would be a square of size 117:26.33 
Robin_Watts I have a nasty feeling that for rectangles acrobat describes the corners in Z shape :(17:27.10 
kens Robin_Watts : I thnk thye must run consecutively, I see nothing to say specifically, but how else would you know which vertices to connect ?17:27.10 
Robin_Watts kens: indeed.17:27.18 
printline Robin_Watts: so what are your thoughts about the addition?17:27.32 
ferter_terter i'm not going to wright you my code17:28.03 
kens : printline experience to date syas that no matter which option is used, it will not satisfy everyone17:28.09 
Robin_Watts printline: That's one for tor8, not for me.17:28.10 
printline kens: though this is the behavior implemented in all pdf readers that are known to me17:28.45 
ferter_terter that's what i draw with direct2d. the numbers are the order in which i pull points from the annot->obj http://my.jetscreenshot.com/demo/20151125-ceg9-90kb17:29.06 
kens printline : I'm sure you can find others that differ, and so what ? It still won't satisfy everyone17:29.13 
Robin_Watts printline: Most other PDF readers display in 'continuous' mode, rather than mupdf-x11 which displays a page at a time.17:29.38 
printline kens: then it would be a good compromise if it satisfied the majority17:29.48 
kens : Majority defined how ?17:30.08 
printline kens: by a survey?17:30.15 
kens ferter_terter : I can't see vertex 417:30.33 
  : printline Are you offering to run a survey for us ?17:30.47 
ferter_terter top left corner17:30.50 
kens OK so why did you draw that order ?17:31.03 
printline kens: hey why not actually, should be fairly easily to set up using google spreadsheets17:31.18 
ferter_terter the thing, i just give direct2d my points and a segment struct. the of the drawing process is done by direct2d17:31.43 
kens Well I can't really comment about direct2D behaviour, but that's not what I would expect17:32.07 
ferter_terter well. it is drawing correctly17:32.30 
kens I#d expect to see a similar shape, but the other way up17:32.39 
ferter_terter but i want to have the points in order to be able to add other features17:33.10 
  i'm asking about direct2d, since this is not a directx chatroom)17:33.41 
  i'm not*17:33.46 
kens Well like I said, its not the shape I'd exepct to see, but then I don't have your PDF file17:34.09 
chrisl printline: since you're the first to bring this up here, I'd say the majority of mupdf users are probably happy with the current behaviour......17:35.25 
printline chrisl: maybe they just didn't think about it before and took it for granted17:38.53 
chrisl printline: I could say the same about your claim that the way other viewers work suits them17:40.27 
  printline: What I'd say (hoping not to overstep the mark on tor8's behalf) is adding new key bindings (rather than changing existing ones) *might* get a more favourable response from tor8 - no guarantees though17:41.19 
printline chrisl: I know. we cannot know for sure either way, though I admit the absence of complains is more indicative for your hypothesis17:41.24 
kens ferter_terter : A quick polygon annotation here wrote the points in the array as per the order I entered them.17:42.34 
ferter_terter yes. you guys were right. i found the place, were directX rotates my figure. this is because directx and pdf have different directions of the axes. thank ya17:49.58 
tor8 printline: chrisl: the mupdf-gl viewer has a slightly different (and IMO better) set of page navigation key bindings19:33.58 
  including Robin's "smart scroll" features taken from the Android viewer19:34.27 
malc_ tor8: what's "smart scroll"?19:38.28 
tor8 malc_: it scrolls a screenful at a time, but also takes into account columns19:42.31 
  so if you only zoom in the left half of the page, it'll page down the left half, then back to the top and down the right, then the next page, etc19:43.05 
malc_ tor8: i see, thanks19:44.25 
sebras tor8: todays git command, sponsored by gka: git log -L :func:file19:49.28 
tor8 sebras: aha! finally I find a git command where -M actually works!19:52.39 
  and it tracks function renames too!19:53.16 
sebras looks up -M19:53.47 
  tor8: oh, so git diff supports -M too, and -C.19:55.15 
  tor8: now maybe I can skip doing git blame -w file; finding this commit on the line that I'm interested in, git checkout commit~1, git blame -w file, looking for the function and offending commit again, and repeating...19:56.33 
tor8 sebras: yes. this magic command looks extremely useful!19:57.47 
  let's ping Robin_Watts so he doesn't miss it! :)19:58.15 
sebras tor8: do you think there is change Robin_Watts will miss it?19:59.20 
  chance.19:59.29 
  tor8: alas, even git log -M -L :func:file it did not catch a function that was renamed and moved between two files.20:01.10 
tor8 sebras: no, I think you might need git grep for that...20:01.36 
  sebras: or a new project, so you can become a git committer ;)20:02.04 
sebras tor8: or not having to specify :file and then have git grep through the entire repo when it doesn't find the function (renamed or not) that it's looking for.20:02.47 
  tor8: but this command is extremely useful for code archeology, and this is 20% of my job during weekdays.20:03.25 
tor8 yes. being able to specify just :function and follow the function through all files and function renames would be awesome20:03.49 
  still, not sure what to do if the function exists in multiple files or is duplicated20:04.02 
sebras tor8: include them all?20:04.18 
tor8 the current git log -L only shows the actual function body, and skips printing the rest of the diff20:04.23 
sebras tor8: yeah, but you could have each function being present. also this would encourage the use of sane namespace prefixes for most uses I guess.20:05.15 
tor8 yeah, just thinking of what might cause headaches down the line20:05.39 
printline tor8: I tried building gl on a mac the other day, but it failed21:06.56 
  you said it would be straightforward adding the GLFW libs for os x with an ifdef block21:09.09 
malc_ printline: tor left21:16.33 
printline malc_: oops, right21:16.52 
malc_ printline: you were using mupdf-x11 on osx?21:21.11 
printline malc_: yese21:24.30 
  *yes21:24.33 
  ah great it works21:32.06 
  just had to add glfw3 :)21:32.18 
Robin_Watts Happy Birthday rayjj!22:34.02 
HenryStiles yea rayjj hope you had a good day skiing!22:34.37 
 Forward 1 day (to 2015/11/26)>>> 
ghostscript.com
Search: