-
Hi Tony,
Thank you for the suggestion. Your way is easier and more simple than mine
, unfortunately it might not work since reformatting the text from blablabla.123 to blablabla ( 123 ). is just part of a big problem.
The whole problem that I need to solve is to find the text with format like I described before, change it to ( ### ). Then find in the same document or other specified document (we ask the user which document) for a paragraph with format ###(tab)blablabla, and move that paragraph as a new paragraph bellow the paragraph where we find blabla.###
If we find more than one blabla.### in a paragraph, the paragraphs that we move as a new paragraph bellow this one has to be sorted according to the number
for example:
blablabla... problematic ideas, and carried into administration the spirit of the infinitely small.?2 Having set down the burdens of office, Laplace could devote himself entirely to standard modeling, or, as he put it, to making physics as perfect as astronomy by importing into it the mathematics and the method of the theory of gravitation.3
and at the end of the document we have list of footnotes such as:
2 Notes on conversation on St. Helena, quoted ibid., p. 110; cf. Maurice Crosland, The Society of Arcueil (Cambridge, Mass.: Harvard University Press, 1967), pp. 63-4.
3 Details about the Napoleonic standard model can be found in
J. L. Heilbron, Weighing Imponderables and other Quantitative Science Around 1800 (Berkeley: University of California Press, 1992).
The end rsult after the macro should look like:
blablabla... problematic ideas, and carried into administration the spirit of the infinitely small ( 2 )." Having set down the burdens of office, Laplace could devote himself entirely to standard modeling, or, as he put it, to making physics as perfect as astronomy by importing into it the mathematics and the method of the theory of gravitation ( 3 ).
2 Notes on conversation on St. Helena, quoted ibid., p. 110; cf. Maurice Crosland, The Society of Arcueil (Cambridge, Mass.: Harvard University Press, 1967), pp. 63-4.
3 Details about the Napoleonic standard model can be found in
J. L. Heilbron, Weighing Imponderables and other Quantitative Science Around 1800 (Berkeley: University of California Press, 1992).
so the two paragraphs (2 and 3) are moved to bellow the blablabla paragraph.
My plan for this problem is:
1. reformat the footnote number to ( ### )
2. each time it reformat a footnote number, a bookmark with the same footnote number is added at the end of that particular paragraph
3. find the paragraph started with the same footnote number and replace the bookmark with this paragraph.
This is the best way I could think of, but as always... logically it sounds easy but the implementation is driving me nuts. And again, any suggestion is greatly appreciated.
Btw when I implemented the find and replace, weird things still happen. The regular expression in find does not recognize:
blablabla?.123 but it recognize blablabla.?123
It also still doesn't catch double quote sign (")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules