Re: 4D Write Pro CSS

2017-04-26 Thread Jeremy French via 4D_Tech
Hi Pat,

Programmatically, my workaround for style sheets is to use the new capabilities 
to:

• define bookmarks.
• define templates.
• build ranges.
• create temporary WritePro areas from a single bookmark.
• insert temporary WritePro areas into the final WritePro document.

In this scheme, the bookmarks become sophisticated style sheets that can do a 
lot more than a “real” style sheet.

There is a HDI (“How do I”) demo at blogs.4d.com  that 
includes a video and 2-sample databases:

4D Write Pro: Document Creation by Programming
http://blog.4d.com/4d-write-pro-document-creation-by-programming/ 


Especially important are these WritePro commands:

WP Get bookmark range
WP GET BOOKMARKS
WP INSERT DOCUMENT
WP New
WP SELECT

When you look at the documentation, be sure you are looking pages in the 
supplemental "4D Write Pro Reference”. (The “Language Reference” has a “4D 
Write Pro" theme, which seems incomplete and sparse. The supplemental "4D Write 
Pro Reference” has more complete documentation.)

http://livedoc.4d.com/4D-Write-Pro-Reference-16-R2.1620/4D-Write-Pro-Reference.100-3124227.en.html
 



Best regards,
Jeremy French

> On Apr 26, 2017, at 6:54 AM, Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> 
> wrote:
> 
> I want to create Write Pro documents entirely through programming,
> but there seem to be some vital options missing. For example:
> 
> How to create a new Stylesheet?

**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Write Pro CSS

2017-04-26 Thread Pat Bensky via 4D_Tech
OK, thanks for clarifying that :)
So ... I want to create Write Pro documents entirely through programming,
but there seem to be some vital options missing. For example:

How to create a new Stylesheet?

You can apply an existing stylesheet with WP SET ATTRIBUTES but I don't see
a way to create them ...

On 25 April 2017 at 03:27, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Hello,
>
> > I want to create HTML files and open them in 4D Write Pro.
>
> > The docs state that the .4wp format is HTML, but if I try to import even
> a very simple HTML document, it fails.
>
> I am sorry to say this won't work.
> 4D Write Pro is not a Web Browser,
> it so happens that a 4D Write Pro document can be fully represented in
> XHTML,
> but the reverse is not true.
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
*
CatBase - The Database Publishing Solution
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Write Pro CSS

2017-04-24 Thread Keisuke Miyako via 4D_Tech
Hello,

> I want to create HTML files and open them in 4D Write Pro.

> The docs state that the .4wp format is HTML, but if I try to import even a 
> very simple HTML document, it fails.

I am sorry to say this won't work.
4D Write Pro is not a Web Browser,
it so happens that a 4D Write Pro document can be fully represented in XHTML,
but the reverse is not true.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Write Pro CSS

2017-04-24 Thread Pat Bensky via 4D_Tech
Hi Keisuke,
Thanks for your reply.
Perhaps it would make more sense if I explain what I'm trying to do ...
I want to create HTML files and open them in 4D Write Pro.
So I need to know which CSS attributes 4D Write Pro supports.
Also, is it even possible to do this? The docs state that the .4wp format
is HTML, but if I try to import even a very simple HTML document, it fails.

Thanks!
Pat

On 24 April 2017 at 05:28, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> Hello,
>
> if the question is "which experimental CSS is supported in 4D Write Pro?",
> then I think you might be asking the wrong question.
>
> quote:
> "4D specific tags" means 4D XHTML with a 4D namespace and 4D CSS styles.
> http://doc.4d.com/4Dv16/4D/16/WP-EXPORT-DOCUMENT.301-3048103.en.html
>
> in other words, non-standard CSS styles are not just experimental,
> (which implies some cutting edge browsers may support it),
> they are CSS properties with a vendor specific -d4 prefix.
>
> for example, you can
> WP EXPORT DOCUMENT + wk web page complete for the standard version, and
> then
> WP EXPORT DOCUMENT + wk 4wp for the proprietary version.
> http://doc.4d.com/4Dv16/4D/16/WP-EXPORT-DOCUMENT.301-3048103.en.html
>
> ".4wp" file is a zip file, so you can change extension and double click to
> see its contents.
>
> the proprietary version specifies
>
> text-decoration:underline;
> -d4-text-underline-style:double;
>
> for a double underline,
> but the standard version specifies
>
> text-decoration:underline;
>
> without the "-d4" style.
>
> note that the result in a browser is exactly the same; "-d4" styles are
> always ignored in a browser.
>
> -
>
> the "Show HTML WYSIWYG" property
> http://doc.4d.com/4Dv16R2/4D/16-R2.1620/Defining-a-4D-
> Write-Pro-area.200-3124235.en.html
>
> allows you to ignore the "-d4" styles in embedded mode,
>
> and the wk html wysiwyg for WP PRINT
> http://doc.4d.com/4Dv16R2/4D/16-R2.1620/WP-PRINT.301-3124247.en.html
>
> allows you to ignore the -d4 styles in printing.
>
> -
>
> but you are right, the doc seems to be missing a comprehensive list of all
> "-d4" styles.
>
> other than the aforementioned "-d4-text-underline-style"
> there is also a "-d4-text-transform:small-uppercase",
> but I am sure there are more.
>
> > 2017/04/24 8:12、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール:
> >
> > I did a quick test - created a 4D Write Pro document with an
> experimental Stylesheet and
> > exported it as HTML.
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **
>



-- 
*
CatBase - The Database Publishing Solution
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Write Pro CSS

2017-04-23 Thread Keisuke Miyako via 4D_Tech
Hello,

if the question is "which experimental CSS is supported in 4D Write Pro?",
then I think you might be asking the wrong question.

quote:
"4D specific tags" means 4D XHTML with a 4D namespace and 4D CSS styles.
http://doc.4d.com/4Dv16/4D/16/WP-EXPORT-DOCUMENT.301-3048103.en.html

in other words, non-standard CSS styles are not just experimental,
(which implies some cutting edge browsers may support it),
they are CSS properties with a vendor specific -d4 prefix.

for example, you can
WP EXPORT DOCUMENT + wk web page complete for the standard version, and then
WP EXPORT DOCUMENT + wk 4wp for the proprietary version.
http://doc.4d.com/4Dv16/4D/16/WP-EXPORT-DOCUMENT.301-3048103.en.html

".4wp" file is a zip file, so you can change extension and double click to see 
its contents.

the proprietary version specifies

text-decoration:underline;
-d4-text-underline-style:double;

for a double underline,
but the standard version specifies

text-decoration:underline;

without the "-d4" style.

note that the result in a browser is exactly the same; "-d4" styles are always 
ignored in a browser.

-

the "Show HTML WYSIWYG" property
http://doc.4d.com/4Dv16R2/4D/16-R2.1620/Defining-a-4D-Write-Pro-area.200-3124235.en.html

allows you to ignore the "-d4" styles in embedded mode,

and the wk html wysiwyg for WP PRINT
http://doc.4d.com/4Dv16R2/4D/16-R2.1620/WP-PRINT.301-3124247.en.html

allows you to ignore the -d4 styles in printing.

-

but you are right, the doc seems to be missing a comprehensive list of all 
"-d4" styles.

other than the aforementioned "-d4-text-underline-style"
there is also a "-d4-text-transform:small-uppercase",
but I am sure there are more.

> 2017/04/24 8:12、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール:
>
> I did a quick test - created a 4D Write Pro document with an experimental 
> Stylesheet and
> exported it as HTML.



**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Write Pro CSS

2017-04-23 Thread Pat Bensky via 4D_Tech
Hmmm.
That doesn't appear to be a very comprehensive list. I did a quick test -
created a 4D Write Pro document with an experimental Stylesheet and
exported it as HTML. It included a CSS section, as expected, with this
style definition:

li.experimental-style {
text-align:right;text-indent:1cm;line-height:120%;list-style-type:disc }

Where can I find a reference to which CSS style attributes are supported by
4D Write?


On 23 April 2017 at 00:48, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>
wrote:

> http://doc.4d.com/4Dv15/4D/15.4/Supported-tags.300-3274727.en.html
>
> explains proprietary CSS attributes such as
>
>  
>
> and
>
> Click here
>
> > 2017/04/23 1:12、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール:
> > its own subset of HTML/CSS attributes and tags, specified in this
> manual."
>
>
>
>
> **
> 4D Internet Users Group (4D iNUG)
> FAQ:  http://lists.4d.com/faqnug.html
> Archive:  http://lists.4d.com/archives.html
> Options: http://lists.4d.com/mailman/options/4d_tech
> Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
> **




-- 
*
CatBase - The Database Publishing Solution
tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

Re: 4D Write Pro CSS

2017-04-22 Thread Keisuke Miyako via 4D_Tech
http://doc.4d.com/4Dv15/4D/15.4/Supported-tags.300-3274727.en.html

explains proprietary CSS attributes such as

 

and

Click here

> 2017/04/23 1:12、Pat Bensky via 4D_Tech <4d_tech@lists.4d.com> のメール:
> its own subset of HTML/CSS attributes and tags, specified in this manual."




**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**

4D Write Pro CSS

2017-04-22 Thread Pat Bensky via 4D_Tech
In the online docs for v16r2 it says:

"*Note:* The 4D Write Pro internal document format is a proprietary HTML
extension, compatible with HTML5/XHTML5, but which supports its own subset
of HTML/CSS attributes and tags, specified in this manual."

http://doc.4d.com/4Dv16R2/4D/16-R2.1620/Using-a-4D-Write-Pro-area.200-3124232.en.html

I can't find any more info about CSS and what tags are supported. Anybody
know where to find it?

This topic isn't even mentioned in the v16R3 docs. Surely that doesn't mean
that CSS isn't supported at all? That would be ridiculous :)

-- 
*
CatBase -
​Top Dog in Data Publishing

tel: +44 (0) 207 118 7889
w: http://www.catbase.com
skype: pat.bensky
*
**
4D Internet Users Group (4D iNUG)
FAQ:  http://lists.4d.com/faqnug.html
Archive:  http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub:  mailto:4d_tech-unsubscr...@lists.4d.com
**