-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tool to split, merge and rearrange pages of notebooks #14
Conversation
Mmh, unfortunately GCC generates a lot of variable shadowing warnings while compiling the CLI11 library, which causes trouble in Travis because of the Edit: I’m able to workaround this problem by forcing CMake to treat CLI11’s included directories as get_target_property(CLI11_include_dirs CLI11 INTERFACE_INCLUDE_DIRECTORIES)
set_target_properties(CLI11 PROPERTIES INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "${CLI11_include_dirs}") |
That's just excellent, I would have done the same!
Love it, wanted to use it for a long time. I can make sure it's placed at the right point and integrated well in our build system. Is it gcc 4.8 compatible?
not a big fan, will place a pinned version with cmake control for external lib if requested. similar to how we do it here: https://github.com/openPMD/openPMD-api
how does pdftk handle this situation?
hm, why aren't they already included as system libs anyway? Anyway, we could also add a gcc/clang pragma pushing/popping the warning around the include. |
CLI11’s README claims compatibility with GCC ≥4.7. I’ve managed to compile it inside a Docker container with GCC 4.8. The shadowing warnings are almost exclusively for constructor arguments that shadow class member variables, and it looks like the folks from Clang decided not to report this use as shadowing. Not sure about using a pragma for this, because it would imply having to surround all includes of this library, should we use it somewhere else in the future (although I guess we could make an internal header for this?). I’m far from a CMake expert, but as far as I understand CMake treats included files as system headers only if the Alright about submodules, I was not sure how you’d prefer including the dependency. Would you like me to change this or can you take care of it? I think you have write access to my branch if needed. Regarding the syntax, |
If you like, we could also use CMake's |
hi @matteodelabre, sorry for being so inactive in the last months. I am still quite busy with my work... That said, is it ok if I acknowledge you in a public talk at "Datenspuren" tomorrow? :) |
Hi Axel, no worries, I’ve been quite busy too, but I should be able to make progress on this soon. About the talk, no problem; on the contrary, thanks for the acknowledgement! I hope this will convince more people into contributing to the project, and I wish you good luck for the talk. |
Hi @ax3l! So, it turns out “soon” was quite a long time in the end. During the hiatus, the file format changes have made this kind of manipulation much easier, not requiring manipulation of the binary format anymore. Plus, moving pages around is now built-in in the tablet’s UI. All in all, I’m no longer convinced of the usefulness of this PR. What’s your take on this? |
That's no problem, we can close it here, which still keeps it for informational purposes for readers if you like. |
(This would close #1, close #3.)
A small proposal for a new tool which enables splitting, merging and rearranging pages of several notebooks. It is loosely inspired from pdftk’s syntax. Here is the intended usage gist:
I’d love to have your opinion on several design choices I made:
arrange A 1-2
and you lose all pages except 1 and 2).What do you think?