Posts:
180
Registered:
15-Jan-2008
|
|
|
|
Text on Text - a need for special pages?
Posted:
9 Oct 26, 14:05
|
|
|
|
|
|
I sometimes need to reproduce a page of text. For example, a newspaper article where I've also typed the text in the comment box so that the words are searchable. However, sometimes the comments overlay part of the image and it is hard to read.
See attached screenshot.
I think it would be useful to be able to have a page of text or text with an image like the NEW PAGE.HTT and ABOUT.HTT , but be able to place it anywhere in the run of album images.
Currently, new pages only appear at the top of the Index page.
I'm using TIGER and maybe this probably is what PHOTOSTORY does, but I like the order of TIGER with rows of thumbnails.
I've used PDF sometimes, but the content isn't searchable.
This question may be better sited in the General section.
|
|
|
Posts:
180
Registered:
15-Jan-2008
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
9 Oct 26, 15:42
in response to: JeffTucker
|
|
|
You should be able to create searchable PDF's, either from a text document or from an existing PDF. If you don't have any software that will do it, you can feed the document to an online service (lots of free ones). It's built in to word processors like Word or Writer.
I should have been more specific! I produce searchable PDFs, but they are not indexed by TIGER album and therefore not found by the site's search box. The htt files work reasonably well and are site-indexed, but are always stuck at the top of a folder index page. That is fine for all the usual templates: Contact, About, etc., because you wouldn't want them anywhere else! However, a pageful of text associated with an image either has to sit underneath an image in the comments and possibly not get seen or be split between images that may not be related to the text. As I get around, I've sometimes just made a text banner image, but it is not a satisfactory solution.
BTW for large PDFs I've resorted to using AI to produce a Keyword list and a summary. ( I think that was your suggestion Jeff!)
Edited by: John-Simpson on 9 Oct 2026, 15:04
|
|
|
Posts:
8,907
Registered:
31-Jan-2006
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
9 Oct 26, 16:19
in response to: John-Simpson
|
|
|
Ah, I see. jAlbum has never had a good way of handling text files. I suspect at least part of the reason is that even today, no browser can display a text file properly, and the app has always been geared towards presenting stuff in a browser. Tricky thing to pull off elegantly. Changing the core so that it would search PDF's and plant the results in the JSON file for the album might work, but that would entail an awful lot of overhead!
The other approach would be for the skin to display long comments on demand, like this:
https://jefftucker.jalbum.net/skins/saturn/modal/
Click the info icon at lower left on the slide pages. The downside, at least as it's currently implemented, is that this doesn't differentiate between long comments and short ones. In other words, if you choose that option for a project, all of the comments are moved to popup modal windows. I should poke around a bit with that one....
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
9 Oct 26, 17:26
in response to: John-Simpson
|
|
|
|
This may sound strange but…
The PDF text can be obtained using PDFBox, part of jAlbum (as mentioned earlier). Now for the sneaky part. Add the extracted text to the comments but enclose it in a span/div that is hidden. The text is part of the dom and so searchable but not visible. The search would find the PDF but not the text within it.
Would that be close enough to what you want?
|
|
|
Posts:
8,907
Registered:
31-Jan-2006
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
9 Oct 26, 17:50
in response to: RobM
|
|
|
...enclose it in a span/div that is hidden.
That's devious. I like it.
For scanning, does it matter whether it's display:none; or visibility:hidden; ?
ETA: And does it end up in the JSON file? Remember, in-album searching isn't relying on the browser to "find" things.
|
|
|
Posts:
180
Registered:
15-Jan-2008
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
9 Oct 26, 21:51
in response to: JeffTucker
|
|
|
Thank you Jeff and Rob.
If I summarise your comments correctly, you think that you say text.html files won't work and that the best way is to make a text searchable PDF. If words are put into the comments box they will get indexed for the site search, even if those words are hidden from view.
I have a few questions:
- 1 What is PDFbox?
- 2 How do you make text hidden? Is it:
<!-- hidden text -->
I did try the above hidden code method and everything turned green but after clicking on the text editor it all disappeared even when back into the comments box!
What I would like is to drop some text into jAlbum and it generates a page of html, that is within the album and acts just like an image does in the album. The new page (htt) works okay but always sits above the images and doesn't sideways scroll.
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
9 Oct 26, 22:45
in response to: John-Simpson
|
|
|
PDFBox is a Java library that jAlbum uses, mainly to extract the image for the thumbnail in explore view.
The hidden thing is a CSS class attribute that tells the browser not to display the text. Something like this to be applied to a paragraph p.hidden{
display: none;
}
to not show it and not to allocate any space for it.
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
9 Oct 26, 22:53
in response to: John-Simpson
|
|
|
Thank you Jeff and Rob.
If I summarise your comments correctly, you think that you say text.html files won't work and that the best way is to make a text searchable PDF. If words are put into the comments box they will get indexed for the site search, even if those words are hidden from view.
What I suggested was a possible way to search the text in the PDF using Tiger. I don't use Tiger but have you looked at Tiger>Settings>Sections>Pages>Show Pages>Embed user pages only.
Try adding an empty page template and put the PDF's text in that templates comment field.
Edited by: RobM on 9 Oct 2026, 22:36
The Tiger setting above does not do what you want. Just tried it and it puts the text at the top, above thumbnails.
|
|
|
Posts:
8,907
Registered:
31-Jan-2006
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
10 Oct 26, 00:33
in response to: RobM
|
 |
Helpful |
|
|
I just did a quick little test, and found something that I think will work.
I enabled the search in Tiger, and for one of the images, I entered a comment like this: The normal comment<span style="display:none;">hidden special text</span>
The phrase "hidden special text" isn't shown on the image, but if I search for "special," the results include that image.
|
|
|
Posts:
180
Registered:
15-Jan-2008
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
10 Oct 26, 13:36
in response to: JeffTucker
|
|
|
I just did a quick little test, and found something that I think will work.
I enabled the search in Tiger, and for one of the images, I entered a comment like this: The normal comment<span style="display:none;">hidden special text</span>
The phrase "hidden special text" isn't shown on the image, but if I search for "special," the results include that image.
Yes, that works very well. Thank you, Rob and Jeff.
I tried it on the Newspaper article and the comments are hidden but searchable! A truncated version of the comments appears on the thumbnail, but that is fine. In the future, I may use this for newspaper articles and short PDF documents. For the longer PDFs I will probably use AI to produce a summary for the comments section and a list of keywords.
I think my request isn't going to happen for text pages scrollable between images in a Album Folder!
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
11 Oct 26, 22:02
in response to: John-Simpson
|
|
|
Yes, that works very well. Thank you, Rob and Jeff.
I just made an external tool to extract the text from PDFs and tried it with Tiger. The comment does not show the PDF text BUT the thumbnail does, if using short comment, when hovering over it. I think Laza is stripping all html code from the thumbnail.
|
|
|
Posts:
1,627
Registered:
6-Sep-2005
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
12 Oct 26, 07:28
in response to: RobM
|
|
|
|
Yes, you can't shorten an HTML text otherwise.
|
|
|
Posts:
1,627
Registered:
6-Sep-2005
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
12 Oct 26, 07:31
in response to: RobM
|
|
|
Including the text as HTML comment might work:
The normal comment <!-- seen by search only -->
Perhaps this is stripped as well, but skipping the comment or using a normal comment should work.
|
|
|
Posts:
4,223
Registered:
4-Aug-2006
|
|
|
|
Re: Text on Text - a need for special pages?
Posted:
12 Oct 26, 09:24
in response to: Laza
|
|
|
Including the text as HTML comment might work:
The normal comment <!-- seen by search only -->
Perhaps this is stripped as well, but skipping the comment or using a normal comment should work.
It would only be seen if there was no comment or one that was shorter than the short comment length. So just something to be aware of.
|
|
|
|
Legend
|
|
Forum admins
|
|
Helpful Answer
|
|
Correct Answer
|
|