-
Notifications
You must be signed in to change notification settings - Fork 188
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
img naming convention and organization #134
Conversation
edit of English version (intention is to make process of creating a new translation easier) images: - consistent use of reference style image syntax in chapters - language subfolder within images folder - file naming convention: en_beg_[two digit chapter #]_ [chapter name based on permalink]_ image[two digit # code]_ [image name based on image reference id] other: - link in CONTRIBUTING.md updated to skip a redirect
Conflicts: _posts/en/0200-12-24-papers.md _posts/en/0200-12-26-gps-1.md
removed {{site.baseurl}} in image paths
I'm rewriting a bit of the beginner guide and other guides and in the process editing some of the images and trying to organize them. What do you think about having subfolders for each chapter? They could also be divided by language as you have done here. You can see what I mean in my fork https://github.com/jeffhaack/learnosm/tree/gh-pages/images/beginner |
It's great that you're doing some rewrites. The guide needs to keep up with the changes in the material it covers. I feel that the images should definitely be organized by language. I think it will help reduce clutter and confusion when new translations are added. In the translation workflow guide I'm working on, I've proposed that one of steps for getting ready is to copy the 'en' images folder and rename it for the new language. This will keep people working on different languages from breaking each other's image links (example being if someone updates and changes the filename of an en version image that is being referenced by another language version). With separate language folders you can clean and update the images folder without worrying about such cross language image dependencies. There will be some duplication across folders (you don't translate an image of an interface icon) but I think the benefit of being able to accurately/correctly/easily remove old image files as they fall out of use for the version you're working on outweighs the duplication. Right now the 'images/en' folder (as I've organized it in this pull request) has only 112 files and the consistent naming convention keeps them nicely sorted. Having them all in one folder also allows you to easily see how the naming convention carries across chapters. The chapter and img name embedded into the filenames make things more readable and make it less confusing/easier to update after something like a chapter reordering. |
I agree with the language folders. But can we have separate folders for each chapter? It's quite annoying to edit a chapter when there are hundreds of files in one massive directory. I've just added 10 or so new chapters into an editing section. So I'd like to structure the images like this: /images/en/beginner/ch1/.png Also, I'm not really good with git so I'm not sure how to deal with your pull request. I've made some considerable changes to the posts and images folder already, so if we merge your pull request then there's going to be lots of conflicts in my version. I'd prefer to just adjust it in my fork and then pull in the changes. However, I do want to pull in the changes you've made to other documents here. Any suggestions? |
How about I use your repo as an upstream, sync my repo with it, resolve all the conflicts, and commit (so that my pull request incorporates all your changes to date)? I can do it tomorrow morning, Oct-15 EST. |
That'd be great, thanks. |
https://github.com/jeffhaack/learnosm Conflicts: _posts/en/0200-12-22-arerial-imagery-considerations.md _posts/en/0200-12-23-editing-with-josm.md _posts/en/beginner/0200-12-20-beginner-all-chapters.html _posts/en/beginner/0200-12-24-papers.md _posts/en/beginner/0200-12-26-gps.md _posts/en/beginner/0200-12-28-start-josm.md _posts/en/beginner/0200-12-29-start-osm.md _posts/en/beginner/0200-12-30-introduction.md _posts/en/editing/0400-11-29-josm-plugins.md images/Homepage.png images/asd.png images/beginner/ch6-field-papers/Homepage.png images/beginner/ch6-field-papers/asd.png images/beginner/ch6-field-papers/blackandwhite.png images/beginner/ch6-field-papers/choosetile.png images/beginner/ch6-field-papers/downloadpdf.png images/beginner/ch6-field-papers/editinidorpot.png images/beginner/ch6-field-papers/fsnapshot.png images/beginner/ch6-field-papers/labelnext.png images/beginner/ch6-field-papers/layout.png images/beginner/ch6-field-papers/makeatlas.png images/beginner/ch6-field-papers/makeyourselfanatlas.png images/beginner/ch6-field-papers/name.png images/beginner/ch6-field-papers/preparingyouratlas.png images/beginner/ch6-field-papers/scannedmap.png images/beginner/ch6-field-papers/scrnsht.png images/beginner/ch6-field-papers/upload.png images/beginner/ch6-field-papers/uploadfp.png images/beginner/ch6-field-papers/watchsnapshot.png images/beginner/ch6-field-papers/zoominout.png images/blackandwhite.png images/choosetile.png images/downloadpdf.png images/editinidorpot.png images/en/en_beg_06_field-papers_image00_homepage.png images/en/en_beg_06_field-papers_image04_makeatlas.png images/en/en_beg_06_field-papers_image05_makeyourselfanatlas.png images/en/en_beg_06_field-papers_image06_zoominout.png images/en/en_beg_06_field-papers_image07_choosetile.png images/en/en_beg_06_field-papers_image08_blackandwhite.png images/en/en_beg_06_field-papers_image09_zoom.png images/en/en_beg_06_field-papers_image10_labelnext.png images/en/en_beg_06_field-papers_image11_name.png images/en/en_beg_06_field-papers_image12_layout.png images/en/en_beg_06_field-papers_image13_preparingyouratlas.png images/en/en_beg_06_field-papers_image14_downloadpdf.png images/en/en_beg_06_field-papers_image15_scrnsht.png images/en/en_beg_06_field-papers_image16_upload.png images/en/en_beg_06_field-papers_image17_uploadfp.png images/en/en_beg_06_field-papers_image18_asd.png images/en/en_beg_06_field-papers_image20_watchsnapshot.png images/en/en_beg_06_field-papers_image22_scannedmap.png images/en/en_beg_06_field-papers_image23_fsnapshot.png images/en/en_beg_06_field-papers_image24_editinidorpot.png images/fsnapshot.png images/labelnext.png images/layout.png images/makeatlas.png images/makeyourselfanatlas.png images/name.png images/preparingyouratlas.png images/scannedmap.png images/scrnsht.png images/upload.png images/uploadfp.png images/watchsnapshot.png images/zoominout.png
Updates to pull request:
Issues:
|
Hi, Just my point of view but someone had already mentioned this in the past:
Everything impacted should be then renamed every time? Sincerely, Severin On Tue, Oct 15, 2013 at 4:34 PM, Dan Joseph [email protected]:
|
Yes, in terms of keeping the list of images in the same order which they appear in the chapter, the system falls apart quickly after updates. However, image numbering can be considered an additional identifier and any new images can simply be added onto the end (both in numbering and on the terminal image reference list). Then at least, the reference list (at the end of the code for a chapter) will be in the same order as image files in the folder. Also, if a translator edits the english text in a filename, the numbering can serve as a sort of cross referencing backup. With a batch rename utility (the one I use is free, and I'm sure there are other options), changing the chapter number is super easy because the chapter numbers always have the same index position. |
So, can you help me figure out a little git magic now? What do I need to do to continue working on this repo and make new commits? Re: image names, it really doesn't matter much to me, I'm happy to migrate to @danbjoseph's suggestions though I find it a bit more convenient just at the moment while making extensive edits to keep separate folders. But I have no problem with your ideas. @danbjoseph re: your issues - yes, we need to update the navigation for new sections and to always be able get back to the beginner. I was thinking there could be a separate menu below the section menu (maybe different color/style) that lists all the sections besides the current section? I guess there's a jekylly way to do this but I couldn't figure out what it is. And the left nav bar getting cut off is more than just there not being enough content on the page - it still gets cut off for some reason if it is too long, even when the page has plenty of content. |
option A
option B
|
Regarding the issue with footer obscuring nav box:
|
img naming convention and organization
So given this file is in place here now : Any reason we didn't delete it from here? |
Sometime soon I plan on going through the existing language translations to check for unexpected image dependencies. Probably do at least some high level folder organization (like division at least into language folders). And continue working on cleaning up the images folder. |
Yah, I left all the original images in place just in case the other languages are depending on them. There should be a new langauge folder for all the languages, and the references in the posts modified accordingly. Then these orginal images can be removed. |
In response to Issue #125 a translation workflow guide is being developed.
This pull request contains edits of the English version with the intention of making the process of creating a new translation easier.
images:
en_beg_[two digit chapter #]_
[chapter name based on permalink]_
image[two digit # code]_
[image name based on image reference id]
NOTE: The chapter and image numbers are not a good system and hard to update. But for now, all the files in
"images\en" are being used on the published pages (no old files not being used), the numbers are paired with text descriptors, the files are all in one place, and the organization is consistent (making batch renaming easy with code or any number of utilities).
NOTE: The jekyll liquid filters are still displaying after the last post for All Chapters. Not sure what the fix is.
other (unrelated):