This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 14 - Pages: 1 - Last Post: 13-Nov-2017 01:06 Last Post By: jGromit
Bussmicke

Posts: 35
Registered: 29-Oct-2007
Underscoreproblems, odd line on the page
Posted: 11-Nov-2017 01:13
 
  Click to reply to this thread Reply
I have problems with a odd line who showns in part of the text. I have underscore in my filenames but supose not to be seen. Am trying to make a complete new gallery.

Sorry for my english.

http://bussmicke.jalbum.net/Bildgalleri/Fornlamningar/Runinskrifter/Upplands_runinskrifter/U_503_Malmby/index.html

http://bussmicke.jalbum.net/Bildgalleri/Bussar/Diverse%20bussbilder/Ovader/index.html#

On my old website i didn't have this problems:
http://www.bussmicke.se/Bildgalleri/Bussar/Sverige/K/Keolis/5700/index.html

Edited by: Bussmicke on 11-Nov-2017 01:14
jGromit

Posts: 33,156
Registered: 31-Jan-2006
Re: Underscoreproblems, odd line on the page
Posted: 11-Nov-2017 02:07   in response to: Bussmicke in response to: Bussmicke
 
  Click to reply to this thread Reply
Please attach your project file - jalbum-settings.jap.
Bussmicke

Posts: 35
Registered: 29-Oct-2007
Re: Underscoreproblems, odd line on the page
Posted: 11-Nov-2017 10:25   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Here it is. I use other names that default to remeber what is what.
RobM

Posts: 4,376
Registered: 4-Aug-2006
Re: Underscoreproblems, odd line on the page
Posted: 11-Nov-2017 11:13   in response to: Bussmicke in response to: Bussmicke
 
  Click to reply to this thread Reply
See Settings/Advanced/Naming
If you switch to ‘URL-encode links‘ the underscores will go
RobM

Posts: 4,376
Registered: 4-Aug-2006
Re: Underscoreproblems, odd line on the page
Posted: 11-Nov-2017 11:19   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
RobM wrote:
See Settings/Advanced/Naming
If you switch to ‘URL-encode links‘ the underscores will go
Sorry misread your post, it is underscore you have not dashes.
jGromit

Posts: 33,156
Registered: 31-Jan-2006
Re: Underscoreproblems, odd line on the page
Posted: 11-Nov-2017 13:48   in response to: Bussmicke in response to: Bussmicke
 
  Click to reply to this thread Reply
Attachment underscores.png (30,2 KB)
Attachment writeUTF8.png (19,5 KB)
Attachment label.png (30,4 KB)
Attachment custLink.png (30,9 KB)
Attachment preformat.png (35,0 KB)
To get rid of the weird underlining problem, see preformat.png, attached. (Edit: Laza, that's a very strange side-effect!)

Other problems, not related....

Your custom link won't work properly without the http:// protocol. See custLink.png.

Do you really want to see the entire file name, including the .jpg extension? If not, see label.png.

You should always write UTF-8. See writeUTF8.png.

Not sure about the conversion of underscores to spaces. What I'm showing in undescores.png will do the trick, but I think Turtle used to do this on its own. I haven't kept track of the changes Laza has made. Perhaps he can address this.
Bussmicke

Posts: 35
Registered: 29-Oct-2007
Re: Underscoreproblems, odd line on the page
Posted: 11-Nov-2017 23:03   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I want to see the filenames without jpg and underscores.
jGromit

Posts: 33,156
Registered: 31-Jan-2006
Re: Underscoreproblems, odd line on the page
Posted: 11-Nov-2017 23:19   in response to: Bussmicke in response to: Bussmicke
 
  Click to reply to this thread Reply
Then the settings shown in my screenshots should work.
Bussmicke

Posts: 35
Registered: 29-Oct-2007
Re: Underscoreproblems, odd line on the page
Posted: 12-Nov-2017 17:11   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
I turned off the Text formatter as told, made the changes in Underscores.png. That toke the filenemns away ang gave Jalbum problem.
I want the filenames as text withoutunderscores, not Label.

Fail report:

Bussmicke

Posts: 35
Registered: 29-Oct-2007
Re: Underscoreproblems, odd line on the page
Posted: 12-Nov-2017 17:45   in response to: Bussmicke in response to: Bussmicke
 
  Click to reply to this thread Reply
I think The text in the yellow area in underscores.png: <%=label.replaceAll("_"," ");% caused the problem. When I removed that test and wrote it before, the program was running again and I could create pages. However, the underscore remains.
jGromit

Posts: 33,156
Registered: 31-Jan-2006
Re: Underscoreproblems, odd line on the page
Posted: 12-Nov-2017 17:57   in response to: Bussmicke in response to: Bussmicke
 
  Click to reply to this thread Reply
Hmmm... It works in my little test album. Make sure you're entering the code correctly - even a single character error will break it:
<%=label.replaceAll("_", " ");%> <small>${comment}</small>
Copy and paste, rather than trying to enter it manually.

Edit: In fact, if I leave off the closing > on the new code, I get exactly the error you're seeing, so I suspect that's the problem.
Bussmicke

Posts: 35
Registered: 29-Oct-2007
Re: Underscoreproblems, odd line on the page
Posted: 12-Nov-2017 18:09   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
jGromit

Posts: 33,156
Registered: 31-Jan-2006
Re: Underscoreproblems, odd line on the page
Posted: 12-Nov-2017 18:10   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Strangely, however, you can't use the same little trick for the caption on the slide images. That's a mystery only Laza can address, I believe.

Edit: I take it back. It works there, as well. (You seem to have added an unwanted trailing "/" on there, however.)
Bussmicke

Posts: 35
Registered: 29-Oct-2007
Re: Underscoreproblems, odd line on the page
Posted: 13-Nov-2017 00:56   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
How to solve it?
jGromit

Posts: 33,156
Registered: 31-Jan-2006
Re: Underscoreproblems, odd line on the page
Posted: 13-Nov-2017 01:06   in response to: Bussmicke in response to: Bussmicke
 
  Click to reply to this thread Reply
You must have entered it accidentally. Look at Turtle > Images > Caption template. If you see a "/" in there, delete it.
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums