(19-11-2026, 07:37 PM)Jorge_Stolfi wrote: You are not allowed to view links. Register or Login to view.(19-11-2026, 12:06 PM)chenxiang wrote: You are not allowed to view links. Register or Login to view.1. Do we need all of it, or only a part? If only a part, which part? Which editions does the SPS comparison actually need?
Wow, I am overwhelmed just at the thought of it.
Have no immediate use for *images* of the pages.
What I would really need is a file containing the Unicode transcription of the large hanzi font white-on-black text only from a Zhenghe Bencao (ZHB) print edition that would be available around 1400 CE, in China or possibly in some other East Asian country like Vietnam, Korea, Burma, etc.
I have this (partial) You are not allowed to view links. Register or Login to view. where one can clearly see the three writing types -- (1) normal font, (2) large-font black-on-white, and (3) large-font white-on-black. I can't figure out the date of that printed copy, but I assume that it is earlier than the 1700s, when it seems that printers stopped using white-on-black.
The text of the Shennong Bencao Jing (SBJ) proper as of ~300 BCE is only text (3). That is the text that seems to match quite well the Starred Parags section of the VMS. Text (2) is some "classical" additions to the SBJ made before ~500 CE or so, and it apparently was not transcribed into the VMS.
I have a digital file with the full text of the ZHB in Unicode. It has markup that allowed me to delete the small-font text (1). But what is left is text (2) plus (3), with no markup distinguishing them. So either this file was OCR-scanned from a recent edition of the ZHB, which did not use white-on-black; or the OCR software ignored the difference between w-on-b and b-on-w.
Anyway, to extract text (3) only from that file have been relying on the Gemini lalamo, which apparently has access to literally thousands of scholarly articles about the ZHB that talk about that distinction. However, its answers are wrong half the time, and I must ask repeatedly, phrase by phrase, "was this really white-on-black". And confront it with another file that was supposed to contain only the SBJ text, but it full of errors of its own. It takes me about one hour to get a Unicode hanzi transcription and an English translation of a single recipe that I dare to trust.
So what would now help me most, again, is a digital transcription of the ZHB in Unicode that has text (3) clearly marked off from texts (1) and (2).
Beware that there are several files out there that claim to have the "SBJ text only". However they are modern attempts to reconstruct the ~300 BCE manuscripts, and differ substantially from the text (3) quoted in the ZHB. The VMS Author would not have access to those recorstructions. Besides those files were assembled by volunteers and are full of errors.
Thanks for the good will, and all the best, --stolfi
Professor Jorge
Before we go further I want to check that I have your request right. The
mock-up in the attachment is my understanding of it.
You want a machine-readable copy of ZHB in which every passage is marked by
its typographic class: (3) white-on-black for the Shen Nong Ben Cao Jing
substrate, (2) large black ink for the later additions, (1) small text for
commentary. The point is not the text by itself — text is available
everywhere — but that the class travels with it, so the SBJ layer can be
pulled out mechanically instead of being guessed one sentence at a time.
If that is what you mean, there are two different products, with quite
different costs in effort.
A. The tagged plain text.
[SBJ] 味苦平。一名鹿韭。生山谷。
[BL] 二月八月采根,阴干。
[N] 今人呼为牡丹。
A text file. You can search it, sort it, tabulate it, diff it against your
VMS word list. The typographic class survives as a tag at the head of each
passage, so filtering is a one-line command.
B. A PDF with a selectable text layer.
Here the text is a layer that sits underneath the page image. When you drag
across a line of the woodblock print, you are actually selecting the typed
text underneath, which is why it can be copied directly. It behaves like a
modern ebook. It also requires an OCR engine that can read Ming woodblock
type at page scale — which is a project in itself, and classical Chinese OCR
is not error-free.
My own guess is that A is what you actually need, and B is what would be nice
to have. But you know your use case better than I do.
Two questions, then:
1. Is the mock-up a fair picture of what you want — or have I misunderstood?
2. If it is right, which of A and B would you want?
Now, in the simplest words I can find, because the difference between A and B
matters and I do not want to hide it behind jargon.
Imagine typing a book into a spreadsheet. The scanned pages are photographs:
you can look at them, but you cannot sort them or filter them. Option A is the
spreadsheet itself — someone types the characters in, with a column saying
which class each passage belongs to. Once that exists, searching and sorting
are trivial, because it is just a table.
Option B is the same spreadsheet with the photographs pasted beside it, and
the typed text lying under the image. You click on the page and copy a line,
and it feels like copying from a photograph. But underneath, it is still the
spreadsheet. Without A there is no B.
If I have the requirement wrong, better to find that out now than after
somebody has done the work.
(The sample text in the mock-up is invented, just to show the format.)

