Skip to content

Can R read Word fonts and comments?

7 messages · John, Bert Gunter, David Winsemius +1 more

#
Yes, I have done some search (e.g., tm, markdown, etc), but I can't find
this function.
If you know any package that works for this purpose, that would be quite
helpful.
Thanks,

John

2016-06-28 16:50 GMT-07:00 Bert Gunter <bgunter.4567 at gmail.com>:

  
  
#
No, sorry -- all I would do is search.

-- Bert


Bert Gunter

"The trouble with having an open mind is that people keep coming along
and sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Fri, Jul 1, 2016 at 2:33 PM, John <miaojpm at gmail.com> wrote:
#
It?s my understanding that docx and xlsx files are zipped containers that have their data in XML files. You should try unzipping one and examining it with a viewer. You may then be able to use pkg:XML.

? 
David.
#
I just added `docx_extract_all_cmnts()` (and a cpl other
comments-related things) to the dev version of `docxtractr`
(https://github.com/hrbrmstr/docxtractr). You can use
`devtools::install_github("hrbrmstr/docxtractr")` to install it.
There's an example in the help for that function.

Give it a go and file detailed issues for other functionality you need.
On Fri, Jul 1, 2016 at 11:14 PM, David Winsemius <dwinsemius at comcast.net> wrote:
2 days later
#
Thank you, David and Bert, for the info.
Thank you, Bob, for this excellent function. Allow me to request a feature:
You highlighted the following text, and comment "This is the first
comment".

"Lorem ipsum dolor sit amet, cu sit modus voluptua accommodare, meis
disputando voluptatibus eu nec, qui te modo solum delicata. Eam scripta
maluisset urbanitas et, numquam disputationi in pri, vis tibique deserunt
accusamus ut. Vis movet admodum probatus cu, ex pri ludus possit. Molestiae
efficiendi at vix, eu labore elaboraret deterruisset mei, et eos persius
nominati."

Could you let the function output the above text (with the comments, of
course), which you highlighted for comment?

Thanks,

John



2016-07-02 14:12 GMT-07:00 boB Rudis <bob at rudis.net>:

  
  
#
I'll dig into that (was hoping the small feature addition wld cause
enhanced feature requests :-)
On Tue, Jul 5, 2016 at 1:02 PM, John <miaojpm at gmail.com> wrote:
#
Thanks, Bob. Regarding other functionalities I would request:
Extract all text with (1) a specific color or (2) a specific font (3)
underlines. For example, if one highlights in red, then she would like to
extract all texts in red. Occasionally she might use more than one colors,
and each color bears its own implication. Thanks!

John



2016-07-05 10:03 GMT-07:00 boB Rudis <bob at rudis.net>: