r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[!REBOL3 Host Kit]

Pekr
21-Oct-2010
[281x2]
ah, now I undestand
So you want to allow to indent more than one line (row) right?
Cyphre
21-Oct-2010
[283x2]
imagein the PADDING as bounding box of the paragraph + space around 
it..and the INDENT as rectangular space that eats part of the bounding 
box in the top left or right corner.
maybe I should make simple image...?
Pekr
21-Oct-2010
[285x6]
no, I understand it ...
MS Word:

|
__| <--indent-left
                       |<--indent-first line
     ______| Paragraph text is here...
ah, wrong ....
| <--- page margin, here 0
__| <--indent-left
             |<--indent-first line
__| Paragraph text is here...
Simply put, MS uses simplified model:


indent - set left or right indentation, plus special indentation 
for the first line (in pixels)
padding - before, after paragraph value in pixels ...
When I translate it is just the same :-) You allow indentation of 
more than one line as a bonus :-)
Cyphre
21-Oct-2010
[291]
http://cyphre.mysteria.cz/pics/padding-indent.png
Pekr
21-Oct-2010
[292]
I think you can add that pic to your document ...
Cyphre
21-Oct-2010
[293]
this one is just quickly sketched..I'll be redoing the current picture 
in the doc to show  it  all better and with updated names etc.
Rebolek
21-Oct-2010
[294]
Indent should support negative value.
Cyphre
21-Oct-2010
[295]
but only in the X axis I guess
Rebolek
21-Oct-2010
[296]
Not to move it back, but to allow
     this kind of paragraph.
Cyphre
21-Oct-2010
[297]
yup
Pekr
21-Oct-2010
[298]
But negative indent just means - start at the first pixel from left 
for the first indented lines, use the value as a padding-left value 
from the left. Paragraph itself should stay where it is ....
Cyphre
21-Oct-2010
[299]
yes, it would be like another padding-left from Y line
ChristianE
21-Oct-2010
[300]
Just to make sure I'm not missing on latest releases - there is no 
A108 or A109 host-kit version available yet?
Pekr
21-Oct-2010
[301]
seems to be so ...
Henrik
21-Oct-2010
[302]
are there any special cases for bullet points?
Maxim
21-Oct-2010
[303x2]
cyphre, I really like the Indent which allows Y value as well.
makes it easy to put something there.
Pekr
21-Oct-2010
[305]
Hmm, here's how I understand bullet points in MS Word - they allow 
you to choose various symbols, or numbers. You can have even number 
hierarchies. But then they made it rather easy. Simply put, indentation 
of paragraph defines, where bullet point starts. In our case, it 
is going to be pad-left value in paragraph. And then they use special 
inden - in our case we could use indent with just single integer 
value - that defines indentation of bullet point and text which follows 
it.


Typically the text is block-aligned in such a case, but you can also 
set it otherwise ....
Carl
23-Oct-2010
[306x3]
A109 host-kit is being tested. See !REBOL3 for link if you want to 
help test it. But, it contains no improvements on the host-kit side... 
all changes right now are focused on the core lib.


But, if you run A109 and type xtest you will see the resident test 
extension run... so we know it's working at least that well.
Pekr... on MS Word, it puzzles me how such a horrible product has 
made it as a world standard this long.
BTW, why is this chat in host-kit area?
Henrik
23-Oct-2010
[309x2]
Related to text handling discussion, which I suppose occurs at the 
host-kit level. But it should probably have a separate group.
text handling = rich text handling, sorry
Maxim
23-Oct-2010
[311x3]
doing a bit of stress-testing... I've just loaded a 15MB polygonal 
model of a tree in my 3d system ... it has ~350000 polygons and ~180000 
vertices.

a bit slow using the current unoptimized Old-school OpenGL commands, 
but I'm still averaging about 10 frames a sec on my 4 year old mobile 
nvidia GPU (which is like 16 times slower than an average desktop 
card of today ).
so the gruesome task of making a release starts tomorrow. now that 
I've got at least a measure of assurances that CGRs are stable.
CGR = Custom Gob Renderers.
Oldes
23-Oct-2010
[314]
does it have some form of AA?
Maxim
23-Oct-2010
[315x4]
no AA control yet..  though you can usually force it manually within 
your gfx card driver.
note that this release will not actually be usefull for any application 
work, its just a proof of concept which hopefully will allow Carl 
and others to see just how flexible the host-kit already is.
Andreas, \thanks for the Fix notes (posted int !REBOL3 group)


I'll add your changes to my A109 and embed the latest CGR code into 
it.  I'll to release this by tomorrow, but no guarantees, i've got 
a lot of other stuff to do.
I was able to compile the A109 hostic using msvc v9.
Maxim
24-Oct-2010
[319]
I just noticed there is no real license terms in the host-kit distributions 
... an oversight?
Andreas
24-Oct-2010
[320]
The license is unfinished ...
Maxim
24-Oct-2010
[321x3]
I just crapped one of the files of my custom host kit environment... 
doh... just as I was doing a backup.
trying a disk restore app to find it in the deleted files on disk.
ah.... just found out that I setup my merge app to store backups 
on all file saves  :-)   yay.
Kaj
24-Oct-2010
[324]
The most stringent thing it says now is "do not distribute"
Maxim
25-Oct-2010
[325x2]
I can't seem to be able to use the function 'REPLACE from within 
the init code of an extension under A109.   

in A107, using the same source code I have no problems

but now (in A109) I get this error:
** Script error: replace word is not bound to a context
yep... just removing the replace function all is good.   so I guess 
the replace function is missing from whatever context is setup when 
an extension's module is loaded.
BrianH
25-Oct-2010
[327x3]
That should not happen. it would make sense for some words to be 
undefined but not REPLACE.
In a fresh console:
>> in lib to-word "replace"
== replace
>> sys/load-module "rebol [] print type? :replace"
function!
== [none make module! [
    ]]

So that is not the problem - REPLACE is defined in lib at startup.
The extension module source is loaded the same way as other modules. 
Are you using a different boot level?
Maxim
25-Oct-2010
[330]
no, see CC ticket 1716 for full details.